mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-30 09:33:21 -08:00
fix out of bounds check
This commit is contained in:
1 parent
cd64657746
commit
fc429449cf
1 file changed
+1
-1
@@ -769,7 +769,7 @@ lnk_symbol_array_from_coff(Arena *arena,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (symbol_idx + aux_symbol_count > coff_symbol_count) {
|
if (symbol_idx + aux_symbol_count + 1 > coff_symbol_count) {
|
||||||
lnk_error(LNK_Error_IllData, "%S: symbol %S has out of bounds aux symbol count %u", obj_path, name, aux_symbol_count);
|
lnk_error(LNK_Error_IllData, "%S: symbol %S has out of bounds aux symbol count %u", obj_path, name, aux_symbol_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user