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] [day] [month] [year] [list]
Message-ID: <202406121144.0EE6C17FF@keescook>
Date: Wed, 12 Jun 2024 11:44:30 -0700
From: Kees Cook <kees@...nel.org>
To: Amer Al Shanawany <amer.shanawany@...il.com>
Cc: Andy Lutomirski <luto@...capital.net>, Will Drewry <wad@...omium.org>,
	Shuah Khan <shuah@...nel.org>, linux-kselftest@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Javier Carrasco <javier.carrasco.cruz@...il.com>,
	kernel test robot <lkp@...el.com>,
	Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH v3] selftests: seccomp: fix format-zero-length warnings

On Tue, Jun 11, 2024 at 05:16:08PM +0200, Amer Al Shanawany wrote:
> fix the following errors by using string format specifier and an empty
> parameter:
> 
> seccomp_benchmark.c:197:24: warning: zero-length gnu_printf format
>  string [-Wformat-zero-length]
>   197 |         ksft_print_msg("");
>       |                        ^~
> seccomp_benchmark.c:202:24: warning: zero-length gnu_printf format
>  string [-Wformat-zero-length]
>   202 |         ksft_print_msg("");
>       |                        ^~
> seccomp_benchmark.c:204:24: warning: zero-length gnu_printf format
>  string [-Wformat-zero-length]
>   204 |         ksft_print_msg("");
>       |                        ^~
> 
> Reported-by: kernel test robot <lkp@...el.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202312260235.Uj5ug8K9-lkp@intel.com/
> Suggested-by: Kees Cook <kees@...nel.org>
> Signed-off-by: Amer Al Shanawany <amer.shanawany@...il.com>

Thanks!

Reviewed-by: Kees Cook <kees@...nel.org>

-- 
Kees Cook

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ