cmd/htmlroff: fix buffer overflow in t2.c getqarg
This is actually from 2016: https://plan9port-review.googlesource.com/c/plan9/+/1590 Change-Id: I6f2a3d71a9dd589eff7ab15b3c1d3997254b3c35
This commit is contained in:
parent
8cd46ae7bc
commit
d9057521e6
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ getqarg(void)
|
||||||
Rune *p, *e;
|
Rune *p, *e;
|
||||||
|
|
||||||
p = buf;
|
p = buf;
|
||||||
e = p+sizeof buf-1;
|
e = p + nelem(buf) - 1;
|
||||||
|
|
||||||
if(getrune() != '\'')
|
if(getrune() != '\'')
|
||||||
return nil;
|
return nil;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue