cvs commit: src/usr.bin/jot jot.c
Diomidis Spinellis
dds at FreeBSD.org
Sun Dec 3 09:50:22 PST 2006
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
More information about the cvs-src
mailing list