Paul Eggert 359b8c3ef2 diff: fix xpalloc-related signed integer overflow
Problem reported by Gisle Vanem <https://bugs.gnu.org/64316>.
* src/io.c (find_and_hash_each_line):
Rely on xpalloc to check for integer overflow instead
of trying to do it ourselves incorrectly, with old code
that predated the use of xpalloc.
* src/system.h: Verify that LIN_MAX == IDX_MAX,
since the code now relies on this.
* tests/Makefile.am (TESTS): Add bug-64316.
* tests/bug-64316: New file
2023-06-28 15:25:21 -07:00
..
cmp
2023-06-26 18:58:50 -07:00
2023-01-01 17:19:37 -08:00
2023-01-01 17:19:37 -08:00
2023-02-10 15:44:38 -08:00
2023-06-06 14:35:21 -07:00
2017-05-02 20:00:50 -07:00
2021-10-15 18:54:49 -07:00
2023-05-13 22:23:57 -07:00