Date: Sat, 29 Apr 2006 10:29:10 +0000 (UTC) From: Stefan Farfeleder <stefanf@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/sh input.c Message-ID: <200604291029.k3TATBVq040859@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
stefanf 2006-04-29 10:29:10 UTC FreeBSD src repository Modified files: bin/sh input.c Log: Check the buffer size when copying the line returned by el_gets() into our own buffer. Interactively typing in long lines (>1023 characters) previously overflowed the buffer. Unlike the NetBSD people I don't see the need to subtract 8 from BUFSIZ, so I just used BUFSIZ-1. Obtained from: NetBSD PR: 91110 Revision Changes Path 1.23 +13 -4 src/bin/sh/input.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604291029.k3TATBVq040859>