Increase MAX_NAME to 16384

Resolves: RHEL-93724
This commit is contained in:
Lukas Javorsky 2025-05-27 13:02:45 +00:00
parent 5db6374006
commit 6795a0c877
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From a3bae4291bc31053df61c47129cd60fd764e4458 Mon Sep 17 00:00:00 2001
From: Lukas Javorsky <ljavorsk@redhat.com>
Date: Tue, 27 May 2025 13:08:27 +0000
Subject: [PATCH] Increase MAX_NAME to 16384
Since some manual pages with NAME sections exceeding 8192 bytes have
been observed in the wild (Debian bug #1102453), increase MAX_NAME to
16384.
---
src/lexgrog.l | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lexgrog.l b/src/lexgrog.l
index c4e3caf..bd10bc1 100644
--- a/src/lexgrog.l
+++ b/src/lexgrog.l
@@ -65,7 +65,7 @@
#include "manconv_client.h"
#define YY_READ_BUF_SIZE 1024
-#define MAX_NAME 8192
+#define MAX_NAME 16384
#define ARRAY_SIZE(array) (sizeof (array) / sizeof ((array)[0]))
--
2.49.0

View File

@ -4,7 +4,7 @@
Summary: Tools for searching and reading man pages
Name: man-db
Version: 2.9.3
Release: 7%{?dist}
Release: 8%{?dist}
# GPLv2+ .. man-db
# GPLv3+ .. gnulib
License: GPLv2+ and GPLv3+
@ -27,6 +27,9 @@ Patch2: man-db-2.9.1-snap.patch
# fix important Covscan defects
Patch3: man-db-2.9.3-coverity.patch
# Inspired by upstream patch: https://gitlab.com/man-db/man-db/-/commit/2da9562c194d520d38978f66bde7ef25d863d8a5
Patch4: man-db-2.9.3-Increase-MAX_NAME-to-16384.patch
Obsoletes: man < 2.0
Provides: man = %{version}
Provides: man-pages-reader = %{version}
@ -235,6 +238,10 @@ fi
%config(noreplace) %{_sysconfdir}/cron.daily/man-db.cron
%changelog
* Tue May 27 2025 Lukas Javorsky <ljavorsk@redhat.com> - 2.9.3-8
- Increase MAX_NAME to 16384
- Resolves: RHEL-93724
* Mon Sep 19 2022 Lukas Javorsky <ljavorsk@redhat.com> - 2.9.3-7
- Rebuild for man-db-cron compose change.
Changing from buildroot to Appstream compose.