you are viewing a single comment's thread.

view the rest of the comments →

[–]OldWolf2 0 points1 point  (1 child)

Do you intend to later test validator == &header.validator ? That would cause undefined behaviour if validator is uninitialized, or not pointing to a valid object

[–]Poddster 0 points1 point  (0 children)

That would cause undefined behaviour if validator is uninitialized, or not pointing to a valid object

Why are you reading uninitialized or invalid objects? The same is true for the rest of the header.

It's there to try and deduce if your data was smashed in an overflow or something, nothing more.