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

SLCORE-941: Don't fail on Windows Shortcuts #1096

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

thahnen
Copy link
Member

@thahnen thahnen commented Sep 11, 2024

SLCORE-941

Following the Windows specification we have to exclude Windows Shortcuts from the analysis as they are no links but actual, binary files.

The exclusion checks if the file name hints to be a shortcut based on its extension. Only then do we check the magic number and decide based on it.

@thahnen thahnen force-pushed the bug/tha/SLCORE-941_Shortcut branch 2 times, most recently from b6494f1 to 4b357ac Compare September 11, 2024 12:11
Following the Windows specification we have to exclude Windows Shortcuts from the analysis as they are no links but actual, binary files.

The exclusion check if the file name hints to be a shortcut based on its extension. Only then we check the magic number and decide based on it.
@thahnen thahnen force-pushed the bug/tha/SLCORE-941_Shortcut branch from 4b357ac to e0efbdb Compare September 11, 2024 12:18
@thahnen thahnen marked this pull request as ready for review September 11, 2024 12:45
Copy link
Contributor

@kirill-knize-sonarsource kirill-knize-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thahnen thahnen merged commit 9956512 into master Sep 16, 2024
13 checks passed
@thahnen thahnen deleted the bug/tha/SLCORE-941_Shortcut branch September 16, 2024 09:00
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.

2 participants