Skip to content

fix #186: segmentation fault when unserializing nonexistent enum case - #187

Open
cracksalad wants to merge 1 commit into
msgpack:masterfrom
cracksalad:master
Open

fix #186: segmentation fault when unserializing nonexistent enum case#187
cracksalad wants to merge 1 commit into
msgpack:masterfrom
cracksalad:master

Conversation

@cracksalad

@cracksalad cracksalad commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Fixes #186.
Add checks if the specified enum case exists and is an actual case (rather than a constant). This leads to 3 new warning cases, which are tested by 3 new test cases.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 75.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.59%. Comparing base (35d4381) to head (b6e1202).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
msgpack_unpack.c 75.00% 3 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #187      +/-   ##
==========================================
+ Coverage   68.51%   68.59%   +0.07%     
==========================================
  Files           7        7              
  Lines        1350     1366      +16     
  Branches      247      250       +3     
==========================================
+ Hits          925      937      +12     
- Misses        310      313       +3     
- Partials      115      116       +1     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

SegFault when unserializing nonexistent enum case

2 participants