Skip to content

Commit

Permalink
Fix null deref in ne parser ##crash
Browse files Browse the repository at this point in the history
* Reported by @cnitlrt via huntr.dev
* BountyID: d8b6d239-6d7b-4783-b26b-5be848c01aa1/
* Reproducer: nenull
  • Loading branch information
radare committed Apr 16, 2022
1 parent 9540cb5 commit 48f0ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/bin/format/ne/ne.c
Expand Up @@ -77,7 +77,7 @@ static char *__func_name_from_ord(const char *module, ut16 ordinal) {

RList *r_bin_ne_get_segments(r_bin_ne_obj_t *bin) {
int i;
if (!bin) {
if (!bin || !bin->segment_entries) {
return NULL;
}
RList *segments = r_list_newf (free);
Expand Down

0 comments on commit 48f0ea7

Please sign in to comment.