jedan bug u fillrect() NULL deref drugi u decode() , memset beskonacno izgleda obican.gif sad pokrece memset bug , a ok.gif idalje null deref the vulnerability is in QGIFFormat::fillRect() function void QGIFFormat::fillRect(QImage& img, int col, int row, int w, int h, QRgb color) { if (w>0) { QRgb** line = (QRgb **)img.jumpTable() + row; for (int j=0; j= 0 ) { fillRect(img, 0, 0, swidth, sheight, color(trans_index)); if (consumer) consumer->changed(QRect(0,0,swidth,sheight)); } else if ( bgcol>=0 ) { fillRect(img, 0, 0, swidth, sheight, color(bgcol)); // the actual call the the function if (consumer) consumer->changed(QRect(0,0,swidth,sheight)); } } } [1] any of those can be true by changing certain bytes in .gif file