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

ParserUnroll: fix seg. fault for uninitialized variables inside header stack indexes #4200

Merged
merged 16 commits into from
Oct 22, 2023
Merged

ParserUnroll: fix seg. fault for uninitialized variables inside header stack indexes #4200

merged 16 commits into from
Oct 22, 2023

Conversation

VolodymyrPeschanenkoLitSoft
Copy link
Contributor

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.

@fruffy
Copy link
Collaborator

fruffy commented Oct 18, 2023

Thanks for fixing this!

midend/parserUnroll.cpp Outdated Show resolved Hide resolved
@VolodymyrPeschanenkoLitSoft
Copy link
Contributor Author

Thanks for fixing this!

You're welcome ;). It was nice to remember this code.

@jafingerhut
Copy link
Contributor

Are the files in the testdata/p4_16_samples_output/parser-unroll directory used for anything during CI testing? If yes, what for?

@VolodymyrPeschanenkoLitSoft
Copy link
Contributor Author

VolodymyrPeschanenkoLitSoft commented Oct 20, 2023

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 --loopsUnroll parameter.

Copy link
Contributor

@jafingerhut jafingerhut left a comment

Choose a reason for hiding this comment

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

LGTM

@fruffy fruffy merged commit efa9135 into p4lang:main Oct 22, 2023
13 checks passed
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.

5 participants