Skip to content

fix escapeFilename panic on empty input - #6

Merged
patryk4815 merged 1 commit into
mainfrom
fix-panics
Aug 18, 2026
Merged

patryk4815 merged 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
@k4lizen

k4lizen commented Aug 16, 2026

Copy link
Copy Markdown

@patryk4815

@patryk4815
patryk4815 merged commit 9e36441 into main Aug 18, 2026
10 checks passed
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