Skip to content

Improve handling for invalid core files - #358

Merged
godlygeek merged 1 commit into
bloomberg:mainfrom
godlygeek:handle_bad_core_files
Sep 22, 2026
Merged

godlygeek merged 1 commit into
bloomberg:mainfrom
godlygeek:handle_bad_core_files

Conversation

@godlygeek

@godlygeek godlygeek commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Prevent reading past the end of a truncated or malformed core file's NT_FILE note.

@godlygeek godlygeek self-assigned this Sep 17, 2026
@godlygeek
godlygeek requested a review from a team September 17, 2026 22:42
@codecov-commenter

codecov-commenter commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.54839% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.75%. Comparing base (a0ec380) to head (e0d0aed).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/pystack/_pystack/corefile.cpp 89.47% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #358      +/-   ##
==========================================
+ Coverage   78.19%   78.75%   +0.56%     
==========================================
  Files          58       58              
  Lines        6690     6709      +19     
  Branches      630      632       +2     
==========================================
+ Hits         5231     5284      +53     
+ Misses       1459     1425      -34     
Flag Coverage Δ
cpp 78.75% <93.54%> (+0.56%) ⬆️
python 78.75% <93.54%> (+0.56%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@godlygeek
godlygeek requested a review from pablogsal September 17, 2026 22:53
@godlygeek
godlygeek force-pushed the handle_bad_core_files branch 2 times, most recently from d51c2b6 to cf28439 Compare September 18, 2026 17:18
@godlygeek godlygeek changed the title Improve handling for unsupported core files Improve handling for invalid core files Sep 18, 2026
@godlygeek
godlygeek force-pushed the handle_bad_core_files branch from cf28439 to 11d9cb4 Compare September 18, 2026 18:16
Comment thread src/pystack/_pystack/corefile.cpp
Comment thread src/pystack/_pystack/corefile.cpp
Comment thread src/pystack/_pystack/corefile.cpp
Comment thread src/pystack/_pystack/corefile.cpp Outdated
@godlygeek

godlygeek commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

OK, I've pushed a fixup commit that I believe addresses all of your concerns. If you're happy with the results, lmk and I'll squash and merge.

Prevent reading past the end of a truncated or malformed core file's
`NT_FILE` note.

Signed-off-by: Matt Wozniski <mwozniski@bloomberg.net>
@godlygeek
godlygeek force-pushed the handle_bad_core_files branch from 5cec815 to e0d0aed Compare September 22, 2026 15:13
@godlygeek
godlygeek enabled auto-merge (rebase) September 22, 2026 15:13
@godlygeek
godlygeek merged commit 7af1ac2 into bloomberg:main Sep 22, 2026
39 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