Fix evas bmp loader code which deal with image size.

if image file's image size not apply padding size, decoding cannot work correctly



SVN revision: 82532
This commit is contained in:
Jiyoun Park 2013-01-10 08:53:11 +00:00
parent 09e6baa5a4
commit aad1b1ed4e
3 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2013-01-09 Jiyoun Park (jypark)
* Fix evas bmp loader code which deal with image size.
2013-01-08 Gustavo Sverzut Barbieri (k-s)
* Fix eina_prefix_new() with debian multilib without magic check file.

1
NEWS
View File

@ -105,3 +105,4 @@ Fixes:
* Fix build of Evas XCB backend
* Fix efreet desktop command parsing of https
* Fix eina_prefix_new() with debian multilib without magic check file.
* Fix evas bmp loader code which deal with image size.

View File

@ -625,6 +625,8 @@ evas_image_load_file_data_bmp(Image_Entry *ie, const char *file, const char *key
}
row_size = ceil((double)(image_w * bit_count) / 32) * 4;
if (image_size != row_size * h)
image_size = row_size * h;
if (bit_count < 16)
{