fix prev chunk size check (#837)

pull/842/head
Lonny Wong 5 years ago committed by GitHub
parent 9250cc51d8
commit 779634aef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -932,10 +932,10 @@ def try_free(addr):
finalize(errors_found, returned_before_error)
return
if unsigned_size(prev_chunk['size']) != prev_size:
if prev_chunk_size != prev_size:
err = 'corrupted size vs. prev_size while consolidating\n'
err += 'prev_size field is 0x{:x}, prev chunk at 0x{:x}, prev chunk size is 0x{:x}'
err = err.format(prev_size, prev_chunk_addr, unsigned_size(prev_chunk['size']))
err = err.format(prev_size, prev_chunk_addr, prev_chunk_size)
print(message.error(err))
errors_found += 1
else:

Loading…
Cancel
Save