plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 23420c24937a8899bf1cfb900b9a5155b6f924ae
parent a2422a89c5ef6cffd71599aaa0af47423eb5a7f9
Author: mmnmnnmnmm <45293514+mmnmnnmnmm@users.noreply.github.com>
Date:   Tue, 28 Jul 2020 20:09:53 +0100

deroff: fix out-of-bounds access if runes above 0X80 are inside EQ clauses

Diffstat:
Msrc/cmd/deroff.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/deroff.c b/src/cmd/deroff.c @@ -745,7 +745,7 @@ eqn(void) } if(c != '\n') while(C1 != '\n') { - if(chars[c] == PUNCT) + if(charclass(c) == PUNCT) last = c; else if(c != ' ')