mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-13 10:24:45 +00:00
Fix null dereference
This commit is contained in:
parent
0104b0b324
commit
1f2139fd54
@ -516,7 +516,7 @@ static int bin_info(RCore *r, int mode) {
|
||||
}
|
||||
|
||||
// checksums are only supported for pe atm
|
||||
if (strncmp ("pe", info->rclass, 2) == 0) {
|
||||
if (info->rclass && strncmp ("pe", info->rclass, 2) == 0) {
|
||||
pair_str ("crc32", info->claimed_checksum, mode, false);
|
||||
pair_str ("crc32c", info->actual_checksum, mode, false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user