Skip to content

Commit

Permalink
Add a null check (radareorg#12977)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maijin authored and radare committed Feb 3, 2019
1 parent 01fea5d commit 7c04189
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libr/bin/bfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,9 @@ R_API int r_bin_file_hash(RBin *bin, ut64 limit, const char *file) {
if (!buf) {
return false;
}
if (!o->info) {
return false;
}
if (buf) {
ctx = r_hash_new (false, R_HASH_MD5 | R_HASH_SHA1);
#define BLK_SIZE_OFF 1024
Expand Down

0 comments on commit 7c04189

Please sign in to comment.