From 7c6b5cdc9fb20964d5580b3b181a39780e20b97e Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 1 Apr 2026 17:49:40 +0000 Subject: [PATCH] chars[] array needs to be sized 256 because it is indexed at many places by (unsigned char) from input data. from Renaud Allard --- usr.bin/deroff/deroff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/deroff/deroff.c b/usr.bin/deroff/deroff.c index acb33b75051..2486fb47288 100644 --- a/usr.bin/deroff/deroff.c +++ b/usr.bin/deroff/deroff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: deroff.c,v 1.18 2023/09/27 21:06:33 millert Exp $ */ +/* $OpenBSD: deroff.c,v 1.19 2026/04/01 17:49:40 deraadt Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -133,7 +133,7 @@ int inmacro; int intable; int keepblock; /* keep blocks of text; normally false when msflag */ -char chars[128]; /* SPECIAL, PUNCT, APOS, DIGIT, or LETTER */ +char chars[256]; /* SPECIAL, PUNCT, APOS, DIGIT, or LETTER */ size_t linesz; char *line;