Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the parsing of /n COFF lib headers #94

Merged
merged 1 commit into from
Nov 29, 2021
Merged

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Oct 9, 2021

COFF defines any archive header beginning with / as special. Before, we assumed that if the header was neither / nor // then it must be /n and parsed accordingly. That breaks with the new /<XFGHASH>/ header in the Windows 11 SDK.

The fact the new header begins with / means it should not just be interpreted as an object - the solution I've gone with here is to harden the parsing of /n to ignore headers where n is not a positive decimal integer.

COFF defines any archive header beginning with / as special. Before, we
assumed that if the header was neither / nor // then it must be /n and
parsed accordingly. That breaks with the new /<XFGHASH>/ header. Harden
the parsing code to allow these new header to be correctly skipped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant