v2.8
(AUTOMAKE_OPTIONS): Remove.
(diff_2_files): Avoid arithmetic overflow in buffer size calculation.
(cmp): Fix typos in previous change.
(pr_context_hunk): Do not dump core if an enormous context causes an arithmetic overflow. (pr_unidiff_hunk): Likewise. (find_hunk): Likewise.
(main): Fix typo that prevented diff -y from working. Bug reported by Mitsuru Chinen.
-L -> --label
(option_help_msgid, usage): Reword for help2man.
Remove trailing white space.
Assume C89 or better. int -> lin for line numbers (or 'long' when that's more convenient). (print_ed_hunk): Fix bug when handling double-dot inserts.
Include <xalloc.h>.
(sip): Avoid integer overflow and core dumps if buffer alignments are preposterously incompatible. (slurp): Do not dump core if the file is growing as we read it. If a regular file grows, keep reading until we catch up with its EOF. (find_and_hash_each_line): Check for integer overflow to avoid core dumps. (GUESS_LINES): Remove. (guess_lines): New function. Avoid integer overflow. (find_identical_ends): Use it. Avoid integer overflow and possible core dumps.
Assume C89 or better. int -> lin for line numbers.
unsigned -> unsigned int.
Don't use alloca or include <alloca.h>. unsigned -> unsigned int (EXIT_SUCCESS, EXIT_FAILURE, EXIT_TROUBLE): Define if not defined. Include signal.h. (SA_RESTART): Define if not defined. (SIGCHLD): Likewise.
2 -> EXIT_TROUBLE. Adopt POSIX convention for ENOEXEC and exit status 126. unsigned -> unsigned int