mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-25 14:47:57 +00:00
Fix #7887 - null deref in bin_get_endian()
This commit is contained in:
parent
bd3247c03b
commit
9372c11996
@ -1986,7 +1986,7 @@ R_API RList *r_bin_get_mem(RBin *bin) {
|
||||
|
||||
R_API int r_bin_is_big_endian(RBin *bin) {
|
||||
RBinObject *o = r_bin_cur_object (bin);
|
||||
return o? o->info->big_endian: -1;
|
||||
return (o && o->info)? o->info->big_endian: -1;
|
||||
}
|
||||
|
||||
R_API int r_bin_is_stripped(RBin *bin) {
|
||||
|
Loading…
Reference in New Issue
Block a user