Skip to content
  • Matthias Clasen's avatar
    Miscellaneous bmp loader fixes (#85448, #86286, #86287): · 096e8ea2
    Matthias Clasen authored
    	* io-bmp.c (grow_buffer): New function to avoid crashes
    	on unchecked reallocs.
    	(DecodeHeader, DecodeColormap, decode_bitmasks,
    	DoCompressed): Use grow_buffer instead of g_realloc
    	throughout. Change signatures where necessary to pass the
    	errors up.
    	(OneLine16): Fix loading of 16bpp BI_RGB bmps.
    	(DoCompressed): Rewritten to properly support BI_RLE4 and
    	skips and jumps.
    096e8ea2
To find the state of this project's repository at the time of any of these versions, check out the tags.