mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 09:00:46 +00:00
Fixed OOB read in mach0.c
This commit is contained in:
parent
e3f51a6ae5
commit
eecb66ad04
@ -2782,7 +2782,7 @@ const RList *MACH0_(get_symbols_list)(struct MACH0_(obj_t) *bin) {
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < bin->nsymtab; i++) {
|
||||
for (i = 0; i < bin->nsymtab && i < symbols_count; i++) {
|
||||
struct MACH0_(nlist) *st = &bin->symtab[i];
|
||||
// 0 is for imports
|
||||
// 1 is for symbols
|
||||
|
Loading…
Reference in New Issue
Block a user