Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: firmware/buffer.c
- ===================================================================
- --- firmware/buffer.c (revision 28167)
- +++ firmware/buffer.c (working copy)
- @@ -20,6 +20,7 @@
- ****************************************************************************/
- #include <stdio.h>
- #include "buffer.h"
- +#include "panic.h"
- #if (CONFIG_PLATFORM & PLATFORM_HOSTED)
- unsigned char audiobuffer[(MEM*1024-256)*1024];
- @@ -44,6 +45,9 @@
- audiobuf += size;
- /* 32-bit aligned */
- audiobuf = (void *)(((unsigned long)audiobuf + 3) & ~3);
- + if (audiobuf > audiobufend) {
- + panicf("OOM: %d bytes", (int) size);
- + }
- return retval;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement