Skip to content

Commit

Permalink
cmd/htmlroff: fix buffer overflow in t2.c getqarg
Browse files Browse the repository at this point in the history
This is actually from 2016:
https://plan9port-review.googlesource.com/c/plan9/+/1590

Change-Id: I6f2a3d71a9dd589eff7ab15b3c1d3997254b3c35
  • Loading branch information
nsajko authored and 0intro committed Jan 2, 2020
1 parent 8cd46ae commit d905752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/htmlroff/t2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d905752

Please sign in to comment.