Bugzilla – Attachment 65255 Details for
Bug 141242
VUL-0: kpdf (and xpdf) crash
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
better patch, trying to get that one upstream
xpdf-splash-overflow.diff (text/plain), 1.35 KB, created by
Dirk Mueller
on 2006-01-26 16:01:14 UTC
(
hide
)
Description:
better patch, trying to get that one upstream
Filename:
MIME Type:
Creator:
Dirk Mueller
Created:
2006-01-26 16:01:14 UTC
Size:
1.35 KB
patch
obsolete
>Index: xpdf/splash/Splash.cc >=================================================================== >--- xpdf/splash/Splash.cc (revision 498958) >+++ xpdf/splash/Splash.cc (working copy) >@@ -928,6 +928,10 @@ void Splash::drawPixel(int x, int y, Spl > int alpha2, ialpha2; > Guchar t; > >+ if ( (unsigned) x >= (unsigned) bitmap->getWidth() || >+ (unsigned) y >= (unsigned) bitmap->getHeight()) >+ return; >+ > if (noClip || state->clip->test(x, y)) { > if (alpha != 1 || softMask || state->blendFunc) { > blendFunc = state->blendFunc ? state->blendFunc : &blendNormal; >@@ -1195,6 +1199,11 @@ void Splash::drawSpan(int x0, int x1, in > updateModY(y); > } > >+ if ((unsigned) x0 >= (unsigned) bitmap->getWidth() || >+ (unsigned) x1 >= (unsigned) bitmap->getWidth() || >+ (unsigned) y >= (unsigned) bitmap->getHeight()) >+ return; >+ > if (alpha != 1 || softMask || state->blendFunc) { > blendFunc = state->blendFunc ? state->blendFunc : &blendNormal; > if (softMask) { >@@ -1825,6 +1834,11 @@ void Splash::xorSpan(int x0, int x1, int > updateModY(y); > } > >+ if ((unsigned) x0 >= (unsigned) bitmap->getWidth() || >+ (unsigned) x1 >= (unsigned) bitmap->getWidth() || >+ (unsigned) y >= (unsigned) bitmap->getHeight()) >+ return; >+ > switch (bitmap->mode) { > case splashModeMono1: > p = &bitmap->data[y * bitmap->rowSize + (x0 >> 3)];
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 141242
:
61896
|
61991
|
65255
|
66287
|
66312