Skip to content

Correct execution permission check 100 -> 0o100#5353

Open
notvictorl wants to merge 2 commits into
google:masterfrom
notvictorl:liuvic/0o
Open

Correct execution permission check 100 -> 0o100#5353
notvictorl wants to merge 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
@notvictorl notvictorl requested a review from javanlacerda July 8, 2026 17:46
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