Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jan 2004 21:28:57 -0800 (PST)
From:      Eric Anholt <anholt@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.sbin/fdformat fdformat.c
Message-ID:  <200401070528.i075SvlZ026589@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
anholt      2004/01/06 21:28:57 PST

  FreeBSD src repository

  Modified files:
    usr.sbin/fdformat    fdformat.c 
  Log:
  From PR:
  In fdformat.c a closing parenthesis is at the wrong place.  Instead of
  adding sizeof _PATH_DEV + 1 to the length of argv[optind], the length of the
  string starting (sizeof _PATH_DEV + 1) characters after argv[optind]'s
  beginning (accessing junk memory if we jump over the terminating null
  character) is passed to malloc().
  
  PR:             bin/60026
  Submitted by:   Stefan Farfeleder <stefan@fafoe.narf.at>
  
  Revision  Changes    Path
  1.21      +1 -1      src/usr.sbin/fdformat/fdformat.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401070528.i075SvlZ026589>