1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-16 02:04:12 +00:00

chars[] array needs to be sized 256 because it is indexed at many places

by (unsigned char) from input data.
from Renaud Allard
This commit is contained in:
deraadt
2026-04-01 17:49:40 +00:00
parent 2092d1748e
commit 7c6b5cdc9f

View File

@@ -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;