Skip to content

Conversation

rnxpyke
Copy link
Contributor

@rnxpyke rnxpyke commented Sep 16, 2025

Issues

something similar to #1898 seems to also be an issue with the markdown parser.

Description

This is a minified version of a new fuzzing run failure on the markdown comment parser.

How Has This Been Tested?

This is the test :)

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes

@elijah-potter
Copy link
Collaborator

I've gone ahead and pushed a possible fix. Would you mind doing a bit more fuzzing to confirm?

@rnxpyke
Copy link
Contributor Author

rnxpyke commented Sep 23, 2025

@elijah-potter the harper-core markdown parser seems fine, at least after 10_000_000 fuzzing iterations.
I added a fuzzing target just for this case in the fuzzing PR.
however, i found another markdown comment issue, which is a problem at least for the java parser.
You can see it in the new commit I attached.
If you want to merge the fix as is, we can move this java case to another issue/PR.

use std::thread;
use std::time::Duration;

let (tx, rx) = channel::<()>();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you doing it inside a seperate thread?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because this is a timeout issue. the seperate thread is to not stall CI forever due to infinite-loops or similar.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah.

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