invalid offset used when decoding certain BMP images
Submitted by Andreas Oberritter
There's a testsuite for BMP images available under the following URL: http://entropymine.com/jason/bmpsuite/bmpsuite/html/bmpsuite.html
Gdk-pixbuf fails to decode the following picture classified as "good" correctly: http://entropymine.com/jason/bmpsuite/bmpsuite/g/rgb16-565pal.bmp
Of those pictures classified as "questionable", decoding the following fails: http://entropymine.com/jason/bmpsuite/bmpsuite/q/pal8offs.bmp
My guess is that the "bfOffBits" field at offset 10 of the "BITMAPFILEHEADER" gets ignored. You could validate its value based on the total file size.
Version: git master