http://bugs.winehq.org/show_bug.cgi?id=11784
Alex Villacís Lasso a_villacis@palosanto.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |a_villacis@palosanto.com Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1
--- Comment #4 from Alex Villacís Lasso a_villacis@palosanto.com 2008-04-11 10:28:29 --- Created an attachment (id=12064) --> (http://bugs.winehq.org/attachment.cgi?id=12064) Add validation for BMP file format in LoadImage()
This patch is a minimal validation that prevents crashes due to invalid bitmap formats being passed to LoadImage(). Patch already sent to wine-patches.
Changelog: * Add minimal validation in BITMAP_Load (the actual implementation of the LoadImage(IMAGE_BITMAP) flag) that the just-loaded file is in fact a BMP file. Reject and return 0 otherwise. * Tests for rejection of invalid files.