cvs commit: src/sys/boot/i386/libi386 devicename.c

Colin Percival cperciva at FreeBSD.org
Mon Aug 4 07:01:50 UTC 2008


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


More information about the cvs-src mailing list