-
Notifications
You must be signed in to change notification settings - Fork 773
-
Notifications
You must be signed in to change notification settings - Fork 773
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
pj_open_lib_ex() doesn't size check name #1489
Comments
I don't see this as a bug. This is part of the contract of the function that name must not be null. Like it is undefined behaviour if you do fopen(NULL, mode). |
That's fine. Also note that there's an issue with a null string (""). |
Ah, right, I missed initially the case of |
pj_open_lib_ex() references
*name
without checking thatname
is not null. It also attempts to readname[1]
without checking that it's accessible.The text was updated successfully, but these errors were encountered: