URL: <https://savannah.gnu.org/bugs/?68812>
Summary: stop using variables of type `int` as array indices
Group: GNU roff
Submitter: gbranden
Submitted: Tue 20 Oct 2026 11:51:22 PM UTC
Category: General
Severity: 3 - Normal
Item Group: Refactoring
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Unlocked
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 20 Oct 2026 11:51:22 PM UTC By: G. Branden Robinson <gbranden>
Turning on ASAN with GCC 12 and combining it with optimization provokes
compiler warnings.
There appear to be only about a double handful of these.
../src/libs/libgroff/font.cpp:1467:66: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
../src/libs/libgroff/font.cpp:387:26: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
../src/preproc/pic/object.cpp:1666:39: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
../src/preproc/refer/command.cpp:791:39: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
../src/roff/troff/input.cpp:10766:43: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
../src/roff/troff/node.cpp:1280:66: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
../src/roff/troff/node.cpp:1701:62: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
../src/roff/troff/node.cpp:5134:29: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
../src/roff/troff/node.cpp:5144:29: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
../src/roff/troff/node.cpp:6657:47: warning: argument 1 value
‘18446744073709551615’ exceeds maximum object size 9223372036854775807
[-Walloc-size-larger-than=]
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?68812>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
