mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
Don't coredump on long input lines. If anyone actually cares, this should
be fixed to actually process long lines instead of truncating them. Obtained from: OpenBSD
This commit is contained in:
parent
90c2506c08
commit
3890f2357a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64052
@ -170,7 +170,7 @@ filter(f)
|
||||
{
|
||||
register c;
|
||||
|
||||
while ((c = getc(f)) != EOF) switch(c) {
|
||||
while ((c = getc(f)) != EOF && col < MAXBUF) switch(c) {
|
||||
|
||||
case '\b':
|
||||
if (col > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user