mausezahn: Fix IPv6 address comparison
commitf6d450a5e4054b7ac17b73fb5081a55479c327d6
authorPetr Machata <petrm@mellanox.com>
Mon, 14 May 2018 21:59:59 +0000 (15 00:59 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 15 May 2018 07:05:52 +0000 (15 09:05 +0200)
treed41ff0e69179a89bf8623a8287cf6bb7edea9f45
parentc44813eb1a7546f77b00ae9d1702d8f5c47b7d40
mausezahn: Fix IPv6 address comparison

CMP_INT evaluates its arguments more than once, and thus passing a
post-incremented pointer as an argument causes double increments and
hence buffer overruns. This can be observed by erratic behavior of IPv6
address ranges. Fix by moving the increment to loop header.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
staging/tools.c