Open
Bug 1172799
Opened 9 years ago
Updated 2 years ago
Potential issue of division by zero, and a zero check condition was necessary
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
NEW
People
(Reporter: pankaj.m1, Unassigned)
Details
(Keywords: crash, csectype-dos, Whiteboard: gfx-noted)
Attachments
(1 file)
676 bytes,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Firefox/38.0 Build ID: 20150525141253 Steps to reproduce: Ran static analyzer tool on libjpeg-turbo 1.4.0 and found division by zero issue in jquant2.c Actual results: Divide by zero error was reported by static tool. At runtime it could have been lead to potential crash. Expected results: Added check for 'total' variable before division operation to fill 'colormap' fields in 'cinfo'
Reporter | ||
Comment 1•9 years ago
|
||
Patch has been provided in attachment.
Comment 2•9 years ago
|
||
Divide by zero is a non-exploitable condition so this bug does not need to be hidden.
Updated•9 years ago
|
Attachment #8617162 -
Attachment is patch: true
Attachment #8617162 -
Attachment mime type: text/x-patch → text/plain
Updated•9 years ago
|
Whiteboard: gfx-noted
Comment 3•9 years ago
|
||
I reported the same issue to "jpegclub.org" several weeks about libjpeg 9a and got the response: If it is clear from the circumstances that the divisor can't be zero, then there is no issue here. A static analyzer, as the name suggests, has limited scope and can't assess all circumstances properly.
Updated•2 years ago
|
Severity: normal → S3
Comment 5•2 years ago
|
||
Clear a needinfo that is pending on an inactive user.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE
.
For more information, please visit auto_nag documentation.
Flags: needinfo?(pankaj.m1)
You need to log in
before you can comment on or make changes to this bug.
Description
•