Skip to content

Conversation

@brandon-fry
Copy link

Adds a null pointer check to the agenda_ member in next before accessing it.
Normally, agenda_ is allocated when parse is called, so the call to next
will only seg fault if it is called before parse. For cases of empty input
from a user, parse may not get called, but next should return false in this
case without crashing.

brandon-fry and others added 2 commits October 30, 2020 12:14
Adds a null pointer check to the agenda_ member in next before accessing it.
Normally, agenda_ is allocated when parse is called, so the call to next
will only seg fault if it is called before parse. For cases of empty input
from a user, parse may not get called, but next should return false in this
case without crashing.
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.

2 participants