Skip to content

fix: PE case-insensitive extensions (Win32/ISO 9660 compatibility)#4996

Open
activeobd wants to merge 1 commit into
anchore:mainfrom
activeobd:main
Open

fix: PE case-insensitive extensions (Win32/ISO 9660 compatibility)#4996
activeobd wants to merge 1 commit into
anchore:mainfrom
activeobd:main

Conversation

@activeobd

Copy link
Copy Markdown

Description

pe-binary-package-cataloger skips valid PE files with upper-case extensions owing to the way FiletreeResolver glob pattern match works: while .EXE and .DLL are perfectly valid from Win32 standpoint, syft skips scanning them entirely. The problem is particularly noticeable when scanning regular ISO 9660 images of dependency installers, where file names/extensions are uppercase.

The PR adds only new extensions (.EXE and .DLL) to the search criteria without reducing the existing coverage.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have tested my code in common scenarios and confirmed there are no regressions

Issue references

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