mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 10:07:38 -04:00
Asan fix warning for 1-bit vert
1-bit vertical displays overread the buffer due to the way the packing works, this isn't the hottest path anyway but we can check if height <= 8 and make stride 0 so the dummy data gets the beginning of the data instead Change-Id: I88ab4dc37bfd2d680d125f964beafe0ddfb00645
This commit is contained in:
parent
ae3b34734a
commit
42a9582cc1
1 changed files with 3 additions and 0 deletions
|
@ -402,6 +402,9 @@ void ICODE_ATTR LCDFN(bitmap_part)(const unsigned char *src, int src_x,
|
|||
}
|
||||
else
|
||||
{
|
||||
if (height <= 8)
|
||||
stride = 0; /* ASAN fix keep from reading beyond buffer */
|
||||
|
||||
dst_end = dst + width;
|
||||
do
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue