]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: json: fix constant parsing on bigendian
authorFlorian Westphal <fw@strlen.de>
Wed, 14 Aug 2019 11:45:19 +0000 (13:45 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 14 Aug 2019 13:28:00 +0000 (15:28 +0200)
commit452e7653334bd2808441fe40235307f1f3dd23c4
tree116069ff59ff10d45df3306e2609018d053e32a8
parent03956c54c85d97c3eb415fac19eddd9fa4932353
src: json: fix constant parsing on bigendian

json restore is broken on big-endian because we errounously
passed uint8_t with 64 bit size indicator.

On bigendian, this causes all values to get shifted by 56 bit,
this will then cause the eval step to bail because all values
are outside of the 8bit 0-255 protocol range.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_json.c