[U-Boot] [PATCH] lcd: align bmp header when uncopmressing image

Wolfgang Denk wd at denx.de
Fri May 31 16:22:54 CEST 2013


Dear Piotr Wilczek,

In message <1369999573-15449-1-git-send-email-p.wilczek at samsung.com> you wrote:
> When compressed image is loaded, it must be decompressed
> to an aligned address + 2 to avoid unaligned access exception
> on some ARM platforms.

If you do this, you must also account for the up to 2 additional
bytes needed in the allocated buffer.

Otherwise you might write over the end of the buffer...

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Die ganzen Zahlen hat der liebe Gott  geschaffen,  alles  andere  ist
Menschenwerk...                                     Leopold Kronecker


More information about the U-Boot mailing list