mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
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;
|
||||
|
||||
p = buf;
|
||||
e = p+sizeof buf-1;
|
||||
e = p + nelem(buf) - 1;
|
||||
|
||||
if(getrune() != '\'')
|
||||
return nil;
|
||||
|
|
Loading…
Reference in a new issue