summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/buflib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c
index 5cdb0f7ecd..52d52459a4 100644
--- a/firmware/buflib.c
+++ b/firmware/buflib.c
@@ -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