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:
William Wilgus 2025-03-10 00:34:15 -04:00 committed by Solomon Peachy
parent ae3b34734a
commit 42a9582cc1

View file

@ -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
{