Re: [PATCH iptables] extensions: libxt_hashlimit: fix 64-bit printf formats

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7 April 2017 at 13:47, James Cowgill <James.Cowgill@xxxxxxxxxx> wrote:
> hashlimit was using "%lu" in a lot of printf format specifiers to print
> 64-bit integers. This is incorrect on 32-bit architectures because
> "long int" is 32-bits there. On MIPS, it was causing iptables to
> segfault when printing these integers.
>
> Fix by using the correct format specifier.
>
> Signed-off-by: James Cowgill <James.Cowgill@xxxxxxxxxx>
> ---
>  extensions/libxt_hashlimit.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
>

For reference, this is related to debian bug #859775 [0]

[0] https://bugs.debian.org/859775
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux