Skip to content

Handle file-type lookup failures before converting to an enum - #293

Open
Zaczero wants to merge 1 commit into
tsoding:mainfrom
Zaczero:submit/missing-file-types
Open

Zaczero wants to merge 1 commit into
tsoding:mainfrom
Zaczero:submit/missing-file-types

Conversation

@Zaczero

@Zaczero Zaczero commented Nov 23, 2026

Copy link
Copy Markdown

Supersedes the walk/copy fix in #263. The -1 error sentinel is outside the range of Nob_File_Type in C++. Check the signed lookup result before converting it to the enum.

Supersedes the internal walk/copy fix in tsoding#263. Comparing against an
out-of-range enum value still trips Clang’s enum sanitizer in C++. Check
the signed result instead, including before the Windows delete switch.
@Zaczero
Zaczero marked this pull request as ready for review November 23, 2026 17:29
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