From 458c3937bca9db8402e898227bdac07d36959fee Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 16 Oct 2013 01:22:02 +0200 Subject: blob: add a magic offset to nesting cookies to ensure that NULL is never returned as a normal value Signed-off-by: Felix Fietkau --- blob.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'blob.h') 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, -- cgit v1.2.3