Skip to content

fix(process): bounds-check GetJavaStacks thread parsing - #630

Merged
sfc-gh-ikryvanos merged 2 commits into
mainfrom
fix/process-javastacks-bounds-check
Aug 27, 2026
Merged

fix(process): bounds-check GetJavaStacks thread parsing#630
sfc-gh-ikryvanos merged 2 commits into
mainfrom
fix/process-javastacks-bounds-check

Conversation

@sfc-gh-ikryvanos

Copy link
Copy Markdown
Collaborator

The jstack parser indexed fields[1] of a thread header line without checking the slice length. A thread name crafted to leave fewer than two trailing fields caused an index-out-of-range panic that crashed the server. Guard the length before indexing. Adds testdata plus a regression case.

The jstack parser indexed fields[1] of a thread header line without
checking the slice length. A thread name crafted to leave fewer than two
trailing fields caused an index-out-of-range panic that crashed the
server. Guard the length before indexing. Adds testdata plus a regression
case.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sfc-gh-ikryvanos
sfc-gh-ikryvanos enabled auto-merge (squash) August 27, 2026 09:41
@sfc-gh-ikryvanos
sfc-gh-ikryvanos merged commit ee48752 into main Aug 27, 2026
7 checks passed
@sfc-gh-ikryvanos
sfc-gh-ikryvanos deleted the fix/process-javastacks-bounds-check branch August 27, 2026 09:49
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