Skip to content

Fix footnote OSS-Fuzz regression - #342

Merged
mity merged 1 commit into
mity:masterfrom
hryhoriiK97:fix-footnote-oss-fuzz-regression
May 22, 2026
Merged

mity merged 1 commit into
mity:masterfrom
hryhoriiK97:fix-footnote-oss-fuzz-regression

Conversation

@hryhoriiK97

Copy link
Copy Markdown
Contributor

Fixes #340

Fixes a footnote regression found by OSS-Fuzz where certain footnote definitions with bracketed inline content could trigger a debug assertion.
Also updates footnote parsing to treat following paragraph lines as part of the footnote body, matching GitHub-style multiline footnotes, and adds regression/spec coverage for both cases.

@codecov

codecov Bot commented May 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.05%. Comparing base (bd61dfb) to head (0d12728).

Files with missing lines Patch % Lines
src/md4c.c 85.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #342   +/-   ##
=======================================
  Coverage   79.05%   79.05%           
=======================================
  Files           5        5           
  Lines        3743     3753   +10     
  Branches     1254     1260    +6     
=======================================
+ Hits         2959     2967    +8     
  Misses        294      294           
- Partials      490      492    +2     

☔ View full report in Codecov by Sentry.
📢 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.

@mity
mity merged commit 54bfec0 into mity:master May 22, 2026
8 checks passed
@mity

mity commented May 22, 2026

Copy link
Copy Markdown
Owner

Thanks, that was fast.

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.

OSS-Fuzz issue 515524698

2 participants