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: <14484.1369044797@warthog.procyon.org.uk>
Date:	Mon, 20 May 2013 11:13:17 +0100
From:	David Howells <dhowells@...hat.com>
To:	Chen Gang <gang.chen@...anux.com>
Cc:	dhowells@...hat.com, james.l.morris@...cle.com,
	Rusty Russell <rusty@...tcorp.com.au>,
	dmitry.kasatkin@...el.com, andriy.shevchenko@...ux.intel.com,
	Andrew Morton <akpm@...ux-foundation.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] lib/mpi/mpicoder.c: looping issue, need stop when equal to zero, found by 'EXTRA_FLAGS=-W'.

Chen Gang <gang.chen@...anux.com> wrote:

> For 'while' looping, need stop when 'nbytes == 0', or will cause issue.
> ('nbytes' is size_t which is always bigger or equal than zero).
> 
> The related warning: (with EXTRA_CFLAGS=-W)
>   lib/mpi/mpicoder.c:40:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]

Acked-by: David Howells <dhowells@...hat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ