From 89fe234c6b39f717ed45f75e6136c223c82cbc53 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 6 Nov 2014 17:31:11 +0100 Subject: [PATCH] CFrameBuffer::paintBoxRel: check boxBuf if not NULL Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/644dc460a2ab6a05494322eabdfdd8d26296e934 Author: Jacek Jendrzej Date: 2014-11-06 (Thu, 06 Nov 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/framebuffer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/driver/framebuffer.cpp b/src/driver/framebuffer.cpp index 4331ce20c..b890a43f4 100644 --- a/src/driver/framebuffer.cpp +++ b/src/driver/framebuffer.cpp @@ -730,6 +730,9 @@ fb_pixel_t* CFrameBuffer::paintBoxRel(const int x, const int y, const int dx, co #define MASK 0xFFFFFFFF fb_pixel_t* boxBuf = paintBoxRel2Buf(dx, dy, MASK, NULL, radius, type); + if (!boxBuf) + return NULL; + fb_pixel_t *bp = boxBuf; fb_pixel_t *gra = gradientData->gradientBuf; gradientData->boxBuf = boxBuf;