-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Heap overflow in pspdf_transform_coords() #467
Comments
@Jorgecmartins Seems like the fix for #468 fixed this as well? I can't reproduce with master... |
@michaelrsweet I'm still able to reproduce it in master.
|
michaelrsweet
added a commit
that referenced
this issue
Jan 17, 2022
michaelrsweet
added
bug
Something isn't working
priority-medium
and removed
investigating
Investigating the issue
labels
Jan 17, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
pspdf_transform_coords()
, in ps-pdf.cxx, there is a heap buffer overflow:The vulnerability is triggered in
pspdf_transform_coords()
, when accessingpage_t *p
, since it points to arbitrary memory.page_t *p
is fetched from an array ofpages
, in the following code:In this situation, the variable
num_pages = 10
, andchapter_starts[0] = 10
, sopage_t *p
points to arbitrary memory, resulting in a heap overflow inp->outmatrix[0][0]
.I've attached poc.zip that can trigger the heap overflow.
Steps to reproduce
The text was updated successfully, but these errors were encountered: