diff options
author | George Fufutos <fufutos610@hotmail.com> | 2006-06-24 15:23:14 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2006-06-24 15:23:14 +0200 |
commit | afb84c2fca56887b3bfe7aa93f337c49b087acdc (patch) | |
tree | dc9276e93825c449e908eb47ca040781f88cab9f /exa | |
parent | 930b9a069a425818d4e9965f53be7df1f4d7d422 (diff) |
Bug #6911: Check return value of exaGetPixelFromRGBA().
Diffstat (limited to 'exa')
-rw-r--r-- | exa/exa_render.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/exa/exa_render.c b/exa/exa_render.c index 26b29ab04..b21c5d724 100644 --- a/exa/exa_render.c +++ b/exa/exa_render.c @@ -282,8 +282,12 @@ exaTryDriverSolidFill(PicturePtr pSrc, return -1; } - exaGetPixelFromRGBA(&pixel, red, green, blue, alpha, - pDst->format); + if (!exaGetPixelFromRGBA(&pixel, red, green, blue, alpha, + pDst->format)) + { + REGION_UNINIT(pDst->pDrawable->pScreen, ®ion); + return -1; + } if (!(*pExaScr->info->PrepareSolid) (pDstPix, GXcopy, 0xffffffff, pixel)) { |