Prevent NULL pointer dereference
This commit is contained in:
parent
db1c1ca7db
commit
b27c726b6d
1 changed files with 5 additions and 3 deletions
|
|
@ -355,9 +355,11 @@ static int string_scan_range(RzList *list, RzBinFile *bf, int min,
|
|||
free (buf);
|
||||
if (pj) {
|
||||
pj_end (pj);
|
||||
RzIO *io = bin->iob.io;
|
||||
if (io) {
|
||||
io->cb_printf ("%s", pj_string (pj));
|
||||
if (bin) {
|
||||
RzIO *io = bin->iob.io;
|
||||
if (io) {
|
||||
io->cb_printf ("%s", pj_string (pj));
|
||||
}
|
||||
}
|
||||
pj_free (pj);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue