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:
parent
e9fb256ca5
commit
458c3937bc
3 changed files with 7 additions and 5 deletions
2
blob.h
2
blob.h
|
@ -28,6 +28,8 @@
|
|||
|
||||
#include "utils.h"
|
||||
|
||||
#define BLOB_COOKIE 0x01234567
|
||||
|
||||
enum {
|
||||
BLOB_ATTR_UNSPEC,
|
||||
BLOB_ATTR_NESTED,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue