Date: Mon, 4 Aug 2008 07:01:42 +0000 (UTC) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/boot/i386/libi386 devicename.c Message-ID: <200808040701.m7471mHB094723@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
cperciva 2008-08-04 07:01:42 UTC
FreeBSD src repository
Modified files:
sys/boot/i386/libi386 devicename.c
Log:
SVN rev 181282 on 2008-08-04 07:01:42Z by cperciva
Dereferencing uninitialized pointers considered harmful. Prior to this
commit, calling i386_parsedev(..., X, ...) where X is "ad", "bge", or
any other disk or network device name without a unit number, would
result in dereferencing whatever happened to be on the stack where the
variable "cp" is stored.
Found by: LLVM/Clang Static Checker
Revision Changes Path
1.10 +4 -0 src/sys/boot/i386/libi386/devicename.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808040701.m7471mHB094723>
