mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-12-27 07:05:52 +08:00
Fixing segfault-causing off-by-one error in index.c
This commit is contained in:
committed by
Brian Bruns
parent
0897cbe612
commit
b5cabb1834
@@ -167,7 +167,7 @@ mdb_read_indices(MdbTableDef *table)
|
||||
/* here we have the internal column number that does not
|
||||
* always match the table columns because of deletions */
|
||||
cleaned_col_num = -1;
|
||||
for (k=0; k<=table->num_cols; k++) {
|
||||
for (k=0; k<table->num_cols; k++) {
|
||||
MdbColumn *col = g_ptr_array_index(table->columns,k);
|
||||
if (col->col_num == col_num) {
|
||||
cleaned_col_num = k;
|
||||
|
||||
Reference in New Issue
Block a user