Skip to content

Reflection: add PE/COFF magic checking for inspection #22982

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

Merged
merged 1 commit into from
Mar 2, 2019

Conversation

compnerd
Copy link
Member

When we inspect a binary, verify that it is a PE/COFF binary before
trying to interpret it as a PE/COFF binary. This prepares the code
for extraction of the file inspection and will permit cross-platform
builds to introspect foreign binaries.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

When we inspect a binary, verify that it is a PE/COFF binary before
trying to interpret it as a PE/COFF binary.  This prepares the code
for extraction of the file inspection and will permit cross-platform
builds to introspect foreign binaries.
@compnerd
Copy link
Member Author

CC: @jckarter @alexshap

@compnerd
Copy link
Member Author

compnerd commented Mar 1, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Mar 1, 2019

Build failed
Swift Test OS X Platform
Git Sha - 0cf91f3

@compnerd
Copy link
Member Author

compnerd commented Mar 1, 2019

@swift-ci please test macOS platform

@compnerd compnerd merged commit 56a73c9 into swiftlang:master Mar 2, 2019
@compnerd compnerd deleted the prepare-for-extraction branch March 2, 2019 01:58
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.

3 participants