Commit 5b4bc729 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Add some sanity checks to new %pJ and %pU code.

Add xasserts() to crash development builds if the wrong struct
is fed in, and fall back to checking the field and returning 'CORRUPT'
if the magic value is not found for production builds rather than
print garbage (and risk an out-of-bounds memory access).
parent b4094428
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment