mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 10:43:32 +00:00
Another buffer overflow similar to the recent one in mkstr(1).
This commit is contained in:
parent
c6613efd36
commit
cb4cbf9c34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106296
@ -231,6 +231,8 @@ yankstr(char **cpp)
|
||||
static char tmp[] = "b\bt\tr\rn\nf\f\\\\\"\"";
|
||||
|
||||
while ((c = *cp++)) {
|
||||
if (dp == dbuf + sizeof(dbuf) - 3)
|
||||
errx(1, "message too long");
|
||||
switch (c) {
|
||||
|
||||
case '"':
|
||||
|
Loading…
Reference in New Issue
Block a user