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: <87myifmxpk.fsf@denkblock.local>
Date:	Thu, 11 Sep 2008 00:40:23 +0200
From:	Elias Oltmanns <eo@...ensachen.de>
To:	"Steven Noonan" <steven@...inklabs.net>
Cc:	"Bartlomiej Zolnierkiewicz" <bzolnier@...il.com>,
	linux-kernel@...r.kernel.org, mingo@...e.hu
Subject: Re: [PATCH] drivers/ide/ide-probe.c: uninitialized variable 'rc'

"Steven Noonan" <steven@...inklabs.net> wrote:
> On Wed, Sep 10, 2008 at 2:09 PM, Bartlomiej Zolnierkiewicz
> <bzolnier@...il.com> wrote:
>>
>
>> I recall seeing identical patch before:
>>
>>        http://article.gmane.org/gmane.linux.ide/33107
>>
>> Does the existing code really results in gcc warning?
>>
>>
>
> Yes, because GCC thinks it's possible that the for loop has zero
> iterations (and hence, 'rc' is never touched).

What about changing the declaration to

	int i, uninitialized_var(rc);

then?

Regards,

Elias
--
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