Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 124764 Details for
Bug 185225
app-text/xpdf: patch for vulnerability in 3.02 (CVE-2007-3387)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed upstream patch
xpdf-3.02pl1.patch (text/plain), 981 bytes, created by
Stefan Cornelius (RETIRED)
on 2007-07-13 19:42:43 UTC
(
hide
)
Description:
proposed upstream patch
Filename:
MIME Type:
Creator:
Stefan Cornelius (RETIRED)
Created:
2007-07-13 19:42:43 UTC
Size:
981 bytes
patch
obsolete
>*** xpdf-3.02-orig/xpdf/Stream.cc Tue Feb 27 14:05:52 2007 >--- xpdf-3.02/xpdf/Stream.cc Thu Jul 12 15:55:49 2007 >*************** >*** 410,424 **** > ok = gFalse; > > nVals = width * nComps; >- if (width <= 0 || nComps <= 0 || nBits <= 0 || >- nComps >= INT_MAX / nBits || >- width >= INT_MAX / nComps / nBits || >- nVals * nBits + 7 < 0) { >- return; >- } > pixBytes = (nComps * nBits + 7) >> 3; > rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes; >! if (rowBytes <= 0) { > return; > } > predLine = (Guchar *)gmalloc(rowBytes); >--- 410,423 ---- > ok = gFalse; > > nVals = width * nComps; > pixBytes = (nComps * nBits + 7) >> 3; > rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes; >! if (width <= 0 || nComps <= 0 || nBits <= 0 || >! nComps > gfxColorMaxComps || >! nBits > 16 || >! nVals <= 0 || >! nVals * nBits + 7 <= 0 || >! rowBytes <= 0) { > return; > } > predLine = (Guchar *)gmalloc(rowBytes);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 185225
: 124764