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

atom_parser.c: memory allocation and freeing bugs #95

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments
Open

atom_parser.c: memory allocation and freeing bugs #95

GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

atom_parser.c has some bugs in memory allocation and deallocation paths:

1) It uses malloc(x * y) instead of calloc(x, y) without overflow checking;
2) It uses assign instead of strdup() in a few places, leading to double free.

The patch below fixes (at least some) issues found on OpenBSD.

Original issue reported on code.google.com by [email protected] on 9 Jul 2014 at 10:47

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant