mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-19 18:47:54 +08:00
Improved bounds checking (fixes oss-fuzz/29328)
This commit is contained in:
@@ -139,6 +139,9 @@ mdb_crack_row3(MdbHandle *mdb, unsigned int row_start, unsigned int row_end,
|
||||
if (bitmask_sz + num_jumps + 1 > row_end)
|
||||
return 0;
|
||||
|
||||
if (col_ptr >= mdb->fmt->pg_size || col_ptr < row_var_cols)
|
||||
return 0;
|
||||
|
||||
jumps_used = 0;
|
||||
for (i=0; i<row_var_cols+1; i++) {
|
||||
while ((jumps_used < num_jumps)
|
||||
|
Reference in New Issue
Block a user