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

[Bugfix, ASAN] test_mem plugin fix OOB read in read_test()

asan correctly identified an out of bound read in the test_mem plugin
This shouldn't cause any issue in normal use since the data isn't used

Change-Id: I52acabc4649397f9dd2ba7979f9210529ced2071

authored by

William Wilgus and committed by
William Wilgus
962e1b2e 1643e0e2

+3 -3
+3 -3
apps/plugins/test_mem.c
··· 132 132 : "r0", "r1", "r2", "r3", "r4", "r5", "r6", "memory", "cc" 133 133 ); 134 134 #else 135 - int x; 136 - for(int i = 0; i < loop_cnt; i++) 135 + int x, i, j; 136 + for(i = 0; i < loop_cnt; i++) 137 137 { 138 - for(int j = 0; j < buf_size; j+=4) 138 + for(j = 0; j < buf_size - 4; j+=4) 139 139 { 140 140 x = buf[j ]; 141 141 x = buf[j+2];