-
Notifications
You must be signed in to change notification settings - Fork 447
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
ParserUnroll: fix seg. fault for uninitialized variables inside header stack indexes #4200
Conversation
Thanks for fixing this! |
You're welcome ;). It was nice to remember this code. |
Are the files in the testdata/p4_16_samples_output/parser-unroll directory used for anything during CI testing? If yes, what for? |
These files are used to store results for p4test when it runs with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
These changes fix the segmentation fault inside ParserUnroll for uninitialized variables that are used as a header stack index. In this case, ParserUnroll generates a warning message and leaves the program as is.