summaryrefslogtreecommitdiff
path: root/src/gif.c
AgeCommit message (Collapse)Author
2024-08-07Fix pedantic warningsRodrigo Arias Mallo
Reviewed-by: dogma
2024-03-09Use Doxygen comments for C filesRodrigo Arias Mallo
2014-12-21more (and indentation in one spot)corvid
2014-06-21Ensure png, jpeg and gif decoders don't use DilloImage after set_parms()Jorge Arellano Cid
This allows reuse of the dicache entry after repush changes DilloImage.
2013-07-28Fixed a bug in Gif processing that could overflow an unsigned amountJorge Arellano Cid
Problem details in bof-read-0_Gif_data_blocks.gif.asan There was an off-by-one safety check that failed when the amounts were equal.
2013-06-17Corrections of gamma.Sebastian Geerken
2013-06-17Added gamma correction value to dw::core::ImgBuf.Sebastian Geerken
2013-01-12clean up struct typedefsp37sitdu, corvid
2012-10-08gif: ensure we have enough buffercorvid
The block size field in the graphic control extension block should always have the value 4, but don't trust it.
2012-10-08unused field in gifcorvid
2011-07-10MSGscorvid
2011-06-05Don't allocate gif->linebuf so soon.corvid
Occasionally, linebuf leaks have appeared in Jeremy's valgrind logs. linebuf is used in Gif_literal() and Gif_sequence(). They are called by Gif_process_code(), which is called by Gif_decode(). In Gif_process_bytes(), you have to be in state 3 to call it. linebuf is allocated inside Gif_do_img_desc(), which is called by GIF_Block(). In Gif_process_bytes(), you have to be in state 2 to call it. After the allocation, there are a couple of cases where the code can return while still in state 2, which would mean coming back to Gif_do_img_desc() later and leaking the linebuf by allocating another. Jeremy has kindly run on this patch for ten days or so without incident.
2011-04-04clearer MSG for suspicious image sizecorvid
I saw a MSG with size 0x[something], and of course I thought it was complaining that a size was given in hex notation.
2010-08-29Removed some obsolete copyright notices that lingered after rewrites.Jorge Arellano Cid
2009-06-29use IMAGE_MAX_AREA instead of IMAGE_MAX_W and IMAGE_MAX_HJohannes Hofmann
2009-06-26Image size sanity checks (part 1)Jorge Arellano Cid
2009-06-19Added image size sanity checksrelease-2_1Jorge Arellano Cid
2009-05-13Silence the last image-debugging messagesJorge Arellano Cid
2009-05-11Cleanup: image debugging messagesJeremy Henty
2009-05-08Fix a memory leak when stopping an image-decoding processJorge Arellano Cid
2009-04-23Remove unused parameter in a_Dicache_write()corvid
2009-03-09needn't include web.hhcorvid
2009-03-09needn't include prefs.hcorvid
2009-01-31Set dicache as MIME dispatcher for image/{gif,jpg,png}. +refactor and cleanupsJorge Arellano Cid
2009-01-14Make now-unused debug messages silent.Jorge Arellano Cid
2009-01-09Backed out changeset abdae95b1c9eJohannes Hofmann
The optimization was causing crashes.
2009-01-05 These optimizations are for repeated images in a page.Jorge Arellano Cid
1.- Every repeated cache-served-image is decoded. The patch adds an extra reference to the dicache entry, so only one of them is decoded, and the imgbuf deletion is left to a_Dicache_cleanup. 2.- Every repeated cache-served-image call copyRow for each row. The patch avoids that. This is common with small images (e.g. bullets), but the overhead may be not worth the patch...
2009-01-01imported patch dicache-cleanup5Jorge Arellano Cid
2008-12-27[mq]: dicache-cleanup1Jorge Arellano Cid
2008-09-30- s/todo:/TODO:/gjcid
2008-09-28- Switched from DEBUG_MSG to MSG.jcid
2008-09-14- Made several cleanups according to compiler warnings with "-W -Wall".jcid
2008-03-15- Added a warning message for false GIF files.jcid
2007-11-05Updated copyright linesjcid
2007-10-07Initial revisionjcid