Skip to content

fix escapeFilename panic on empty input#6

Open
disconnect3d wants to merge 1 commit into
mainfrom
fix-panics
Open

fix escapeFilename panic on empty input#6
disconnect3d wants to merge 1 commit into
mainfrom
fix-panics

Conversation

@disconnect3d

Copy link
Copy Markdown
Member

Diagnosed and fixed with Claude Code

src.len - 1 underflows usize and triggers a runtime integer overflow panic when escapeFilename is called with an empty string. This is reachable from C via debuginfod_find_source / debuginfod_find_section when GDB passes a zero-length C string for source_path or section.

src.len - 1 underflows usize and triggers a runtime integer overflow
panic when escapeFilename is called with an empty string. This is
reachable from C via debuginfod_find_source / debuginfod_find_section
when GDB passes a zero-length C string for source_path or section.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@disconnect3d disconnect3d requested a review from patryk4815 June 8, 2026 07: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.

1 participant