diff --git a/src/processor/exploitability_linux.cc b/src/processor/exploitability_linux.cc index c54cb046..bc1b0b08 100644 --- a/src/processor/exploitability_linux.cc +++ b/src/processor/exploitability_linux.cc @@ -522,7 +522,7 @@ bool ExploitabilityLinux::DisassembleBytes(const string& architecture, BPLOG(ERROR) << "Failed to call objdump."; return false; } - if (fread(objdump_output_buffer, 1, buffer_len, objdump_fp) != buffer_len) { + if (fread(objdump_output_buffer, 1, buffer_len, objdump_fp) <= 0) { pclose(objdump_fp); unlink(raw_bytes_tmpfile); BPLOG(ERROR) << "Failed to read objdump output.";