Skip to content

Correct execution permission check 100 -> 0o100#5353

Merged
ViniciustCosta merged 2 commits into
google:masterfrom
notvictorl:liuvic/0o
Jul 14, 2026
Merged

Correct execution permission check 100 -> 0o100#5353
ViniciustCosta merged 2 commits into
google:masterfrom
notvictorl:liuvic/0o

Conversation

@notvictorl

Copy link
Copy Markdown
Collaborator

The bitwise check for needs_execute_permission uses decimal 100 (0o144) instead of octal 100 to determine if execution permissions would be needed. This results in giving execution permissions to files that had read permissions in group or others (---r--r--).

Corrected this bug by switching to 0o100 and added unit tests to better check which files receive execution permissions.

Bug: https://crbug.com/531741750

@notvictorl
notvictorl requested a review from a team as a code owner July 7, 2026 20:54
@notvictorl
notvictorl requested a review from dylanjew July 7, 2026 21:27
Comment thread src/clusterfuzz/_internal/tests/core/system/archive_test.py Outdated

@ViniciustCosta ViniciustCosta left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems like a nice catch to me!

@ViniciustCosta
ViniciustCosta merged commit b364c07 into google:master Jul 14, 2026
11 checks passed
@notvictorl
notvictorl deleted the liuvic/0o branch July 14, 2026 17:03
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