[bug #68583] [PATCH] [troff] signed integer overflow in dictionary.cpp:is_good_size() since commit 3c1fa16104, 2026-04-14

"G. Branden Robinson" <[email protected]> Fri, 31 Jul 2026 15:27:12 -0400 (EDT)
Newsgroups gmane.comp.printing.groff.bugs
Message-ID <[email protected]>
--8323329-1714636915-1785526031=:1685240
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

Update of bug #68583 (group groff):=0A=0A                  Status:         =
    In Progress =3D> Fixed=0A             Open/Closed:                    O=
pen =3D> Closed=0A=0A    __________________________________________________=
_____=0A=0AFollow-up Comment #1:=0A=0A=0Acommit 653d0769ab12e4b3b5ebd28fc96=
1771ca07f8cb7=0AAuthor: Bruno Haible <[email protected]>=0ADate:   Sat Jul 25=
 01:10:20 2026 +0200=0A=0A    [troff]: Fix Savannah #68583.=0A    =0A    * =
src/roff/troff/dictionary.cpp: Preprocessor-include C "<limits.h>"=0A      =
header file for `SSIZE_MAX` symbol.=0A    =0A      (is_good_size): Avoid si=
gned integer overflow when computing=0A      dictionary capacity.=0A    =0A=
    Fixes <https://savannah.gnu.org/bugs/?68583>.  [Problem introduced by m=
e=0A    in commit 3c1fa16104, 14 April.  --GBR]=0A    =0A    [Tweaked to fi=
t groff's code style conventions.  Sort preprocessor=0A    inclusions in le=
xicographic order where dependencies permit.=0A    Parenthesize formally co=
mplex expressions.  Use Clark, not GNU, brace=0A    style.  --GBR]=0A=0A=0A=
=0A=0A    _______________________________________________________=0A=0ARepl=
y to this item at:=0A=0A  <https://savannah.gnu.org/bugs/?68583>=0A=0A_____=
__________________________________________=0AMessage sent via Savannah=0Aht=
tps://savannah.gnu.org/=0A
--8323329-1714636915-1785526031=:1685240
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCamz3DwAKCRCqLAuaBUf3
TtPuAP9JS6g9jmYqFY7DraXANB+j8+k2b6TuOEvKiIJVqN2dkwEA+vlNPtNlXgq+
knfSwfRU8Vvcar2drFqyfXn9QDn0jgQ=
=w9rO
-----END PGP SIGNATURE-----

--8323329-1714636915-1785526031=:1685240--