[SDL] tga file loading ...
f91-men at nada.kth.se
Fri Apr 28 12:04:44 PDT 2000
>Why not compare the width/height/bpp information to the size of the raw data as
>a sanity check?
It still doesn't guarantee against a false positive, and it requires decoding
the entire file in the presence of RLE compression. Worse, it makes the
magic numbers of other formats hazardous as they might mistakenly identify
a .tga as (say) a Group 3 Fax file. (The last case actually did happen in
the Gimp. It has now been fixed, so the file suffix is tested against
magicless formats first.)
More information about the SDL