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

get_identifiers can return garbage #154

Open
ghost opened this issue Jan 17, 2019 · 0 comments
Open

get_identifiers can return garbage #154

ghost opened this issue Jan 17, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 17, 2019

In identifiers.cc, if vector get_identifiers(string var) is passed a string that doesn’t conform to what it expects, it can return garbage. In the particular case I was looking at var was “no”. Then in the loop iden.rule and iden.id are not set by the >> operator and retain an uninitialized value, which is returned in the result.

Arguably this function should print an error message if var is not of the right format, but at the least iden should be initialized.

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

No branches or pull requests

0 participants