Follow-up Comment #6, bug #68942 (group groff):
commit a9342dcb9ac41ce6ae2794c40401cb2b31413998 Author: G. Branden Robinson <[email protected]> Date: Mon Nov 23 22:01:17 2026 -0600 src/devices/grotty/tty.cpp: Fix overflow check. * src/devices/grotty/tty.cpp (tty_printer::add_char): Stop provoking UB while trying to prevent UB. Rewrite test for signed integer overflow. See CERT C Rule INT32-C. Clarify fatal diagnostic when integer overflow would occur. Continues commit 112ec43851, 20 November, fixing Savannah #68942. commit 3f5e7d26ea27bfe716ff32eacd6eaaa9aaf44e01 Author: G. Branden Robinson <[email protected]> Date: Mon Nov 23 22:04:42 2026 -0600 [grotty]: Fix fatal diagnostic message text. * src/devices/grotty/tty.cpp (tty_printer::add_char): Report correct size of failed memory allocation. We don't need `nlines` times the size of a `tty_glyph` structure, but `nlines` times the size of a _pointer_ to such a structure. Continues commit 112ec43851, 20 November, fixing Savannah #68942. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?68942> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature
