Add optional (define BUFFER_ALLOC_DEBUG to enable it) code to check for code overflow...
commita762f59513b273b75910815dd022fa75f1122dd9
authorgevaerts <gevaerts@a1c6a512-1295-4272-9138-f99709370657>
Sun, 26 Sep 2010 12:05:42 +0000 (26 12:05 +0000)
committergevaerts <gevaerts@a1c6a512-1295-4272-9138-f99709370657>
Sun, 26 Sep 2010 12:05:42 +0000 (26 12:05 +0000)
treec9e2b19b56375fac35d996fb85d5e3a5802dfc45
parent874acce52686bef8252ceeaea2fb353c9d10f4af
Add optional (define BUFFER_ALLOC_DEBUG to enable it) code to check for code overflowing buffer_alloc()-allocated buffers.
Also add a panicf() if buffer_alloc() doesn't have enough space left to allocate a requested buffer

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28173 a1c6a512-1295-4272-9138-f99709370657
firmware/buffer.c
firmware/export/buffer.h
firmware/thread.c