Skip to content

Fix OSS-Fuzz #428983568 and #428760800 #19012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

nielsdos
Copy link
Member

@nielsdos nielsdos commented Jul 2, 2025

Both these issues have the same root cause, their reproducer is extremely similar so I don't duplicate the test.

If the parser invokes the lexer, and the lexer fails, it could've allocated a string which must be freed when the parser backs up. The %destructor list is responsible for this but did not have an entry for fallback yet. Solve the issue by adding such an entry.

Both these issues have the same root cause, their reproducer is
extremely similar so I don't duplicate the test.

If the parser invokes the lexer, and the lexer fails, it could've
allocated a string which must be freed when the parser backs up.
The `%destructor` list is responsible for this but did not have an entry
for `fallback` yet. Solve the issue by adding such an entry.
@nielsdos nielsdos closed this in 4aac98f Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants