mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +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
|
/* here we have the internal column number that does not
|
||||||
* always match the table columns because of deletions */
|
* always match the table columns because of deletions */
|
||||||
cleaned_col_num = -1;
|
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);
|
MdbColumn *col = g_ptr_array_index(table->columns,k);
|
||||||
if (col->col_num == col_num) {
|
if (col->col_num == col_num) {
|
||||||
cleaned_col_num = k;
|
cleaned_col_num = k;
|
||||||
|
|||||||
Reference in New Issue
Block a user