mirror of
https://github.com/vale981/libblobpack
synced 2025-03-04 17:31:42 -05:00
validate blobmsg attributes before converting them to json
This commit is contained in:
parent
9a8a7793e2
commit
84448556c4
1 changed files with 3 additions and 0 deletions
|
@ -180,6 +180,9 @@ static void blobmsg_format_element(struct strbuf *s, struct blob_attr *attr, boo
|
|||
void *data;
|
||||
int len;
|
||||
|
||||
if (!blobmsg_check_attr(attr, false))
|
||||
return;
|
||||
|
||||
if (!array && blobmsg_name(attr)[0]) {
|
||||
blobmsg_format_string(s, blobmsg_name(attr));
|
||||
blobmsg_puts(s, ":", 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue