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).
Please register or sign in to comment