Skip to content

head: Fixed TOCTOU bug in checking of metadata#12439

Open
max-amb wants to merge 2 commits into
uutils:mainfrom
max-amb:fix_head_TOCTOU
Open

head: Fixed TOCTOU bug in checking of metadata#12439
max-amb wants to merge 2 commits into
uutils:mainfrom
max-amb:fix_head_TOCTOU

Conversation

@max-amb
Copy link
Copy Markdown
Contributor

@max-amb max-amb commented May 22, 2026

Fixes #11972.

Doesn't look exploitable in any degree but lack of TOCTOU is perhaps nice to have.

Not sure if a closure was the best way to do print_header, very open to alternative approaches.

@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/symlink (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/printf/printf-surprise is now being skipped but was previously passing.

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.

head: potentially TOCTOU race with .is_dir()

1 participant