cvs commit: src/usr.sbin/lpr/lpc lpc.c

Tim J. Robbins tjr at FreeBSD.org
Mon Oct 13 00:24:24 PDT 2003


tjr         2003/10/13 00:24:23 PDT

  FreeBSD src repository

  Modified files:
    usr.sbin/lpr/lpc     lpc.c 
  Log:
  Fix two buffer overflows caused by off-by-one errors: avoid writing a null
  character 1 byte past the end of cmdline[] when libedit is being used for
  input, and avoid writing a null pointer 1 element past the end of margv[].
  
  Reviewed by:            gad
  
  Revision  Changes    Path
  1.28      +2 -2      src/usr.sbin/lpr/lpc/lpc.c


More information about the cvs-src mailing list