uli / dragonbasic

Dragon BASIC compiler for Game Boy Advance
Other
42 stars 7 forks source link

Using the #PALETTE directive on 24-bit BMP files causes MF to segfault. #15

Closed supercom32 closed 6 years ago

supercom32 commented 6 years ago

Issue found using the latest version of Dragon Basic under Linux (Commit ID: d2ce042366068083a5fe3089873a22221fffbc26)

Using the #PALETTE directive on 24-bit BMP files causes MF to segfault. While this isn't really legal to do in DBC, MF still shouldn't segfault. Instead it should tell the user what was wrong and that #PALETTE directives arn't allowed on BMP files with a color depth of 24-bits.

supercom32 commented 6 years ago

This issue has been tested and found to be fixed in the associated change set.