Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upheap out of bounds read (large) in Pl_Buffer::write #150
Comments
jberkenbilt
added
bug
next
labels
Aug 29, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jberkenbilt
Aug 29, 2017
Contributor
I've reproduced this in the test suite on my branch. I'll fix it next time I have a chance, hopefully tomorrow sometime.
|
I've reproduced this in the test suite on my branch. I'll fix it next time I have a chance, hopefully tomorrow sometime. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jberkenbilt
Aug 29, 2017
Contributor
This was an integer overflow. I have updated the code to, I believe, detect integer overflow/underflow in all cases now. This will be on master as soon as I test on Windows. It works in Linux with clang and gcc and the whole test suite, with the addition of this file and all the other ones you've provided, runs clean through address sanitizer on my work branch.
|
This was an integer overflow. I have updated the code to, I believe, detect integer overflow/underflow in all cases now. This will be on master as soon as I test on Windows. It works in Linux with clang and gcc and the whole test suite, with the addition of this file and all the other ones you've provided, runs clean through address sanitizer on my work branch. |
jberkenbilt
closed this
in
ec7d74a
Aug 29, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ghost
commented
Feb 14, 2018
|
This has been assigned CVE-2017-18185 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kirotawa
Feb 27, 2018
Hi,
What is the commit that fix this issue? I saw that commit in closed is just adding tests. Is that the fix itself?
kirotawa
commented
Feb 27, 2018
|
Hi, What is the commit that fix this issue? I saw that commit in closed is just adding tests. Is that the fix itself? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jberkenbilt
Feb 27, 2018
Contributor
@kirotawa I would have to do some investigation to figure out exactly which one it is. I fixed this series of issues by addressing some fundamental items in the code, such as detecting integer overflows, and some of the fixes to the code fixed multiple issues. Most likely 6d46346 or 1868a10 is responsible for the actual fix.
|
@kirotawa I would have to do some investigation to figure out exactly which one it is. I fixed this series of issues by addressing some fundamental items in the code, such as detecting integer overflows, and some of the fixes to the code fixed multiple issues. Most likely 6d46346 or 1868a10 is responsible for the actual fix. |
hannob commentedAug 27, 2017
The attached file causes an out of bounds heap read, detectable with asan, found with libfuzzer.
qpdf-heapoob-Pl_Buffer_write.zip
ASAN error: