Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/blob.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-10-16 03:22:02 +0400
committerFelix Fietkau <nbd@openwrt.org>2013-10-16 03:22:02 +0400
commit458c3937bca9db8402e898227bdac07d36959fee (patch)
tree76e0734e3b85e5be2c73bcdaa3946664bdf130be /blob.h
parente9fb256ca51b68e387f7ad536280ad51c6f98047 (diff)
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>
Diffstat (limited to 'blob.h')
-rw-r--r--blob.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/blob.h b/blob.h
index 846de6e..fa430a8 100644
--- a/blob.h
+++ b/blob.h
@@ -28,6 +28,8 @@
#include "utils.h"
+#define BLOB_COOKIE 0x01234567
+
enum {
BLOB_ATTR_UNSPEC,
BLOB_ATTR_NESTED,