A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

Asan fix warning for 1-bit vert #2

try #2 at this
if there isn't enough data remaining to fill the columns
then don't read any more data

looking at the blame for this driver it had similar logic originally

But really on native this is just extra overhead so..
Ifdef out for native

Change-Id: I105dea1f7adc0448f345b268fcfa8574333132a9

authored by

William Wilgus and committed by
William Wilgus
69664cc4 c31234bc

+4 -4
+4 -4
firmware/drivers/lcd-1bit-vert.c
··· 402 } 403 else 404 { 405 - if (height <= 8) 406 - stride = 0; /* ASAN fix keep from reading beyond buffer */ 407 - 408 dst_end = dst + width; 409 do 410 { ··· 429 dst_col += stride_dst; 430 data >>= 8; 431 } 432 - data |= *src_col << shift; 433 bfunc(dst_col, mask_col & mask_bottom, data); 434 } 435 while (dst < dst_end);
··· 402 } 403 else 404 { 405 dst_end = dst + width; 406 do 407 { ··· 426 dst_col += stride_dst; 427 data >>= 8; 428 } 429 + #if !(CONFIG_PLATFORM & PLATFORM_NATIVE) 430 + if (y>=shift) /* ASAN fix keep from reading beyond buffer */ 431 + #endif 432 + data |= *src_col << shift; 433 bfunc(dst_col, mask_col & mask_bottom, data); 434 } 435 while (dst < dst_end);