From 23420c24937a8899bf1cfb900b9a5155b6f924ae Mon Sep 17 00:00:00 2001 From: mmnmnnmnmm <45293514+mmnmnnmnmm@users.noreply.github.com> Date: Tue, 28 Jul 2020 20:09:53 +0100 Subject: [PATCH] deroff: fix out-of-bounds access if runes above 0X80 are inside EQ clauses --- src/cmd/deroff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/deroff.c b/src/cmd/deroff.c index 0ad08375..4c48989c 100644 --- 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 != ' ')