]> git.imager.perl.org - imager.git/commit
- added many bad BMP files to test various code paths in bmp.c, and
authorTony Cook <tony@develop=help.com>
Thu, 25 Nov 2004 12:39:05 +0000 (12:39 +0000)
committerTony Cook <tony@develop=help.com>
Thu, 25 Nov 2004 12:39:05 +0000 (12:39 +0000)
commit662e3c02015f0421f6f764564ad73ba34f448af3
treee36142251a548b20b1c26928f818c125938797ca
parentae839bdcf70c99115df9f5a0fe0fe93649e6f9b1
- added many bad BMP files to test various code paths in bmp.c, and
  made many minor fixes to bmp.c to make them work:
  - it was possible for various types of read failures to SEGV, both
    as NULL pointer dereferences and buffer overflows
  - some errors, like palettes being too large for the number of bits
    per pixel, were not being caught
  - failing to read all of a packed data structure would not cause
    a read failure
  - invalid compression types were not always caught
  - error messages are more consistent (still not always great messages,
    but one step at a time)
- added bmp_compression_name, bmp_used_colors, bmp_filesize, bmp_bit_count
  tags on reading a BMP file
Changes
MANIFEST
bmp.c
lib/Imager/Files.pod
t/t107bmp.t