]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reserve two bytes at the end of the DDB input line in db_readline() to
authorRobert Watson <rwatson@FreeBSD.org>
Fri, 7 Mar 2008 13:13:17 +0000 (13:13 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Fri, 7 Mar 2008 13:13:17 +0000 (13:13 +0000)
commit233f8184ecfa5df4a666a64792a97db0ecdc9d66
treec930445d919e3cc3dee3f930cbdd31bb97dfc71d
parent02f27f1cfa619cdf9509c65366f55f7c8803de5c
Reserve two bytes at the end of the DDB input line in db_readline() to
hold the newline and nul terminator.  Otherwise, there are cases where
garbage may end up in the command history due to a lack of a nul
terminator, or input may end up without room for a newline.

MFC after: 3 days
PR: 119079
Submitted by: Michael Plass <mfp49_freebsd@plass-family.net>
sys/ddb/db_input.c