Skip to content
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

Crash on invalid input #64

Closed
lexxmark opened this issue Oct 11, 2020 · 6 comments
Closed

Crash on invalid input #64

lexxmark opened this issue Oct 11, 2020 · 6 comments
Labels
Bison Issues related to Bison

Comments

@lexxmark
Copy link
Owner

From sourceforge:

rpcalc___win_bison_2.5.23_crash.zip

The attached file is the first example in chapter 2 of the Bison manual with minor changes including at least one typo. Bison crashes while processing the file. I did not look that closely at the cause of the crash except to see that a NULL pointer was being accessed when it appeared that several functions were exiting. The win_bison program was invoked with no arguments besides the name of the file. The latest released version of win_bison, 2.5.23, was being used.

@GitMensch
Copy link
Collaborator

Do you investigate that (if yes adding the assignment here would be good)?
Do you know already if this is an upstream bug or not? if it is then it may be fixed in the development tree already (so we could pull that change), if it isn't fixed yet we should create bug report (much better: one including a patch).

@GitMensch GitMensch added the Bison Issues related to Bison label Oct 12, 2020
@lexxmark
Copy link
Owner Author

I didn't investigate it yet. Going to look at all accumulated stuff later this week or next week.

@lexxmark
Copy link
Owner Author

I reproduced a crash and reported issue to GNU Bison project akimd/bison#54
I don't have linux to try it by myself.

@lexxmark
Copy link
Owner Author

lexxmark commented Nov 3, 2020

The upstream bison project doesn't have such issue, I have outdated gnu lib source files.

I will update them next time I upgrade winflexbison.

@lexxmark
Copy link
Owner Author

@lexxmark
Copy link
Owner Author

lexxmark commented Jan 6, 2021

fixed in v2.5.24

@lexxmark lexxmark closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bison Issues related to Bison
Projects
None yet
Development

No branches or pull requests

2 participants