lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190205145359.74508b0e@hermes.lan>
Date:   Tue, 5 Feb 2019 14:53:59 -0800
From:   Stephen Hemminger <stephen@...workplumber.org>
To:     Davide Caratti <dcaratti@...hat.com>
Cc:     David Ahern <dsahern@...il.com>, netdev@...r.kernel.org
Subject: Re: [PATCH iproute2-next] tc: full JSON support for 'bpf' actions

On Thu, 31 Jan 2019 18:58:09 +0100
Davide Caratti <dcaratti@...hat.com> wrote:

> +		print_uint(PRINT_ANY, "code", "%hu ", ops[i].code);
> +		print_uint(PRINT_ANY, "jt", "%hhu ", ops[i].jt);
> +		print_uint(PRINT_ANY, "jf", "%hhu ", ops[i].jf);

Did you know that print_uint promotes the argument to unsigned int
then you are printing it with %hhu which expects only a u8.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ