path: root/tests/shell
diff options
authorPhil Sutter <>2019-09-13 17:20:04 +0200
committerPhil Sutter <>2019-09-14 01:05:03 +0200
commit5731cc15d3929312c5b63206c8a8a06fb8ce6bab (patch)
tree71798e3c49b8b0962a9da1d0fdd2088f7795962d /tests/shell
parente1e33b8907bf7c2110bdc3990908a0049bbbe71d (diff)
parser_bison: Fix 'exists' keyword on Big Endian
Size value passed to constant_expr_alloc() must correspond with actual data size, otherwise wrong portion of data will be taken later when serializing into netlink message. Booleans require really just a bit, but make type of boolean_keys be uint8_t (introducing new 'val8' name for it) and pass the data length using sizeof() to avoid any magic numbers. While being at it, fix len value in parser_json.c as well although it worked before due to the value being rounded up to the next multiple of 8. Fixes: 9fd9baba43c8e ("Introduce boolean datatype and boolean expression") Signed-off-by: Phil Sutter <> Acked-by: Florian Westphal <>
Diffstat (limited to 'tests/shell')
0 files changed, 0 insertions, 0 deletions