]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: fix endless loop on 64 bit when parsing binops
authorPatrick McHardy <kaber@trash.net>
Sun, 9 Dec 2012 13:55:03 +0000 (14:55 +0100)
committerPatrick McHardy <kaber@trash.net>
Sun, 9 Dec 2012 13:55:22 +0000 (14:55 +0100)
commita64c860314779d95dc20834b5e8b314bfb9bac8e
treedab0932429c80e87081d66f15d7da58c11b41fb1
parentffc9966f7798eb6b0282cceaae5193326b5ae636
netlink: fix endless loop on 64 bit when parsing binops

mpz_scan1() returns ULONG_MAX when no more bits are found. Due to assignment
to an unsigned int, this value was truncated on 64 bit and the loop never
terminated.

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/netlink_delinearize.c