mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
* src/head.c (elide_tail_bytes_pipe): Don't set REM to BUFSIZ when the REMAINDER is zero. Don't assume the input is longer than the given number of bytes. * tests/head/head-elide-tail.pl ($HEAD_TAIL_PIPE_BYTECOUNT_THRESHOLD) ($MULTIPLE, $FRACTION): New variables. (@Tests): Add a few test cases for the bugs. * NEWS: Mention the bug fixes. Discovered by Anthropic's OSS Scanner, as bug ANT-2026-BMLRFV62.