bb #6558: endian agnostic ID checking in jpeg exploit logic