mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
buflib: enable all paranoia checks
Since allocation is infrequent in Rockbox enabling the extra checks to catch memory corruption is probably worth the time and code size cost. Change-Id: If0d701421054328c57b69e4d0af30759d799d158
This commit is contained in:
parent
8f896b14d3
commit
88b21731fc
1 changed files with 3 additions and 1 deletions
|
|
@ -103,7 +103,9 @@
|
|||
#define PARANOIA_CHECK_BLOCK_HANDLE (1 << 2)
|
||||
#define PARANOIA_CHECK_CRC (1 << 3)
|
||||
/* Bitmask of enabled paranoia checks */
|
||||
#define BUFLIB_PARANOIA 0
|
||||
#define BUFLIB_PARANOIA \
|
||||
(PARANOIA_CHECK_LENGTH | PARANOIA_CHECK_HANDLE | \
|
||||
PARANOIA_CHECK_BLOCK_HANDLE | PARANOIA_CHECK_CRC)
|
||||
|
||||
#if BUFLIB_PARANOIA & PARANOIA_CHECK_CRC
|
||||
# define BUFLIB_HAS_CRC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue