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 402 } 403 403 else 404 404 { 405 - if (height <= 8) 406 - stride = 0; /* ASAN fix keep from reading beyond buffer */ 407 - 408 405 dst_end = dst + width; 409 406 do 410 407 { ··· 429 426 dst_col += stride_dst; 430 427 data >>= 8; 431 428 } 432 - data |= *src_col << shift; 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 433 bfunc(dst_col, mask_col & mask_bottom, data); 434 434 } 435 435 while (dst < dst_end);