mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-01-02 20:42:14 +08:00
Fix buffer overflow
This commit is contained in:
@@ -251,7 +251,7 @@ int ret;
|
||||
} else {
|
||||
str = mdb_col_to_string(mdb, mdb->pg_buf, start, col->col_type, len);
|
||||
}
|
||||
strcpy(col->bind_ptr, str);
|
||||
snprintf(col->bind_ptr, MDB_BIND_SIZE, "%s", str);
|
||||
g_free(str);
|
||||
}
|
||||
ret = strlen(col->bind_ptr);
|
||||
|
||||
Reference in New Issue
Block a user