mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Another buffer overflow similar to the recent one in mkstr(1).
This commit is contained in:
parent
c6613efd36
commit
cb4cbf9c34
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue