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: <20060831230049.db26d0e6.akpm@osdl.org>
Date:	Thu, 31 Aug 2006 23:00:49 -0700
From:	Andrew Morton <akpm@...l.org>
To:	Eric Sesterhenn <snakebyte@....de>
Cc:	linux-kernel@...r.kernel.org, matthew@....cx
Subject: Re: [Patch] Uninitialized variable in drivers/scsi/ncr53c8xx.c

On Fri, 01 Sep 2006 01:29:12 +0200
Eric Sesterhenn <snakebyte@....de> wrote:

> hi,
> 
> this was spotted by coverity (id #880).
> We use simple_strtoul() earlier to initialize pe,
> if the function fails, it also does not initialize it.
> Therefore we should initialize it ourselves, so the check
> in the OPT_TAGS case "if (pe && *pe == '/')" makes sense, and
> actually makes the command line parsing more robust.
> 
> Signed-off-by: Eric Sesterhenn <snakebyte@....de>

simple_strtoul() always initialises `pe'.

> --- linux-2.6.18-rc5/drivers/scsi/ncr53c8xx.c.orig	2006-09-01 01:25:09.000000000 +0200
> +++ linux-2.6.18-rc5/drivers/scsi/ncr53c8xx.c	2006-09-01 01:25:26.000000000 +0200
> @@ -692,7 +692,7 @@ static int __init sym53c8xx__setup(char 
>  	int xi = 0;
>  
>  	while (cur != NULL && (pc = strchr(cur, ':')) != NULL) {
> -		char *pe;
> +		char *pe = NULL;
>  
>  		val = 0;
>  		pv = pc;
> 

-
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