blob: add a magic offset to nesting cookies to ensure that NULL is never returned as a normal value

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2013-10-16 01:22:02 +02:00
parent e9fb256ca5
commit 458c3937bc
3 changed files with 7 additions and 5 deletions

2
blob.h
View file

@ -28,6 +28,8 @@
#include "utils.h"
#define BLOB_COOKIE 0x01234567
enum {
BLOB_ATTR_UNSPEC,
BLOB_ATTR_NESTED,