mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Improved bounds and return value checking (oss-fuzz/29329)
This commit is contained in:
@@ -1344,7 +1344,10 @@ SQLRETURN SQL_API SQLColumns(
|
||||
LogStatementError(stmt, "Could not read table '%s'", szTableName);
|
||||
return SQL_ERROR;
|
||||
}
|
||||
mdb_read_columns(table);
|
||||
if (!mdb_read_columns(table)) {
|
||||
LogStatementError(stmt, "Could not read columns of table '%s'", szTableName);
|
||||
return SQL_ERROR;
|
||||
}
|
||||
for (j=0; j<table->num_cols; j++) {
|
||||
col = g_ptr_array_index(table->columns, j);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user