Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Dec 2006 17:50:21 +0000 (UTC)
From:      Diomidis Spinellis <dds@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/jot jot.c
Message-ID:  <200612031750.kB3HoMIi055154@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dds         2006-12-03 17:50:21 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/jot          jot.c 
  Log:
  Prevent buffer overflow when forcibly terminating an escape character.
  
  Obtained from:  OpenBSD
  Note: In the case of a full buffer the OpenBSD implementation will
  leave in the format string an invalid escape sequence.  This appears
  to be harmless with our C library, but according to C99 this can
  cause undefined behavior.
  
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.36      +3 -1      src/usr.bin/jot/jot.c



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