[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #65962] input.cpp: reduce stack limit to <=100
From: |
Bjarni Ingi Gislason |
Subject: |
[bug #65962] input.cpp: reduce stack limit to <=100 |
Date: |
Sun, 7 Jul 2024 10:05:37 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?65962>
Summary: input.cpp: reduce stack limit to <=100
Group: GNU roff
Submitter: bjarniig
Submitted: Sun 07 Jul 2024 02:05:36 PM UTC
Category: Core
Severity: 3 - Normal
Item Group: Build/Installation
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sun 07 Jul 2024 02:05:36 PM UTC By: Bjarni Ingi Gislason <bjarniig>
Subject: input.cpp: reduce stack limit to <=100
Directory: src/roff/troff
Bug #65930 "[me] large values of register 'tv' cause infinite trap
recursion"
uses about 1000 recursions before it gives up.
I have not seen the reasoning for this high value.
As I have noticed before, documenting the reasons for a concrete decision
is lacking in too many places in source files, which is the right place to
explain the used algorithms or concrete numbers.
How many items in a stack are minimally needed for a correctly functioning
input file?
I have run the build of groff with reduced values of the constant
"DEFAULT_INPUT_STACK_LIMIT"
and it needs > 25 < 50 stack elements.
If it needs more, I would suspect a bug, or a bad coding (algorithm) to be
the cause.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65962>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
- [bug #65962] input.cpp: reduce stack limit to <=100,
Bjarni Ingi Gislason <=
- [bug #65962] input.cpp: reduce stack limit to <=100, G. Branden Robinson, 2024/07/07
- [bug #65962] [troff] want stack limit reduced to <=100, G. Branden Robinson, 2024/07/07
- [bug #65962] [troff] want stack limit reduced to <=100, Dave, 2024/07/08
- [bug #65962] [troff] want stack limit reduced to <=100, Dave, 2024/07/08
- [bug #65962] [troff] describe use of `slimit` register better, G. Branden Robinson, 2024/07/09
- [bug #65962] [troff] describe use of `slimit` register better, G. Branden Robinson, 2024/07/10