mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 16:19:22 +00:00
* grub-core/video/readers/png.c (grub_png_decode_image_header):
Fix formula for computing total number of bytes.
This commit is contained in:
1 parent
29648c5d84
commit
d72bff0997
2 files changed
+6
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user