* grub-core/video/readers/png.c (grub_png_decode_image_header):

Fix formula for computing total number of bytes.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-09-27 21:51:52 +02:00
parent 29648c5d84
commit d72bff0997
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/video/readers/png.c (grub_png_decode_image_header):
Fix formula for computing total number of bytes.
2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/video/readers/tga.c: Reorganize to separate RLE and

View file

@ -278,7 +278,7 @@ grub_png_decode_image_header (struct grub_png_data *data)
}
#endif
data->raw_bytes = data->image_height * (data->image_width + 1) * data->bpp;
data->raw_bytes = data->image_height * (data->image_width * data->bpp + 1)
data->cur_column = 0;
data->first_line = 1;