projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcee2d5
)
improve validation - add header length
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 23 Jan 2011 19:32:57 +0000
(20:32 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 23 Jan 2011 19:32:57 +0000
(20:32 +0100)
blobmsg.c
patch
|
blob
|
history
diff --git
a/blobmsg.c
b/blobmsg.c
index cc6b2f3cb93daebd3e954af7ee28386718923eba..bddf2c88d9b8a1ad57cb748e53e22cb4c9f21104 100644
(file)
--- a/
blobmsg.c
+++ b/
blobmsg.c
@@
-26,7
+26,7
@@
bool blobmsg_check_attr(const struct blob_attr *attr, bool name)
if (!hdr->namelen && name)
return false;
- if (hdr->namelen > blob_len(attr))
+ if (hdr->namelen > blob_len(attr)
- sizeof(struct blobmsg_hdr)
)
return false;
if (hdr->name[hdr->namelen] != 0)