Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

buflib: fix buflib_context_relocate alignment check

Use the standard IS_ALIGNED macro and check alignment against
sizeof(buflib_data), as it can be greater than 4 bytes if we're
on a 64-bit platform (eg. simulator).

Change-Id: I15110937d1f2978e733d169050de9531fe218214

+1 -1
+1 -1
firmware/buflib.c
··· 144 144 145 145 /* cannot continue if the buffer is not aligned, since we would need 146 146 * to reduce the size of the buffer for aligning */ 147 - if ((uintptr_t)buf & 0x3) 147 + if (!IS_ALIGNED((uintptr_t)buf, sizeof(union buflib_data))) 148 148 return false; 149 149 150 150 /* relocate the handle table entries */