mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 20:22:38 +00:00
Fix possible null deref in bin.get_info
This commit is contained in:
parent
6d04a5ebec
commit
cb7c2b7f56
@ -576,7 +576,8 @@ R_API RList* r_bin_get_imports(RBin *bin) {
|
||||
}
|
||||
|
||||
R_API RBinInfo* r_bin_get_info(RBin *bin) {
|
||||
if (!bin->cur->buf) return NULL;
|
||||
if (!bin || !bin->cur || !bin->cur->buf)
|
||||
return NULL;
|
||||
return bin->cur->o->info;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user