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

Fix potential write to unallocated memory. #27

Merged
merged 2 commits into from
Sep 29, 2020
Merged

Conversation

ofalk
Copy link
Contributor

@ofalk ofalk commented Jul 27, 2020

As reported in #26, exit with error in case malloc() returns with NULL, instead of considering malloc() will always work.

src/options.c Outdated Show resolved Hide resolved
@ofalk
Copy link
Contributor Author

ofalk commented Sep 17, 2020

Committed as suggested. If you want me to rebase/squash, PLMK.

@vgropp vgropp merged commit 2062f94 into vgropp:master Sep 29, 2020
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