]> git.ipfire.org Git - thirdparty/coreutils.git/commit
pr: guard input position update against overflow
authorGuanqiang Han <hanguanqiang@kylinos.cn>
Tue, 7 Jul 2026 14:58:43 +0000 (22:58 +0800)
committerPádraig Brady <P@draigBrady.com>
Fri, 10 Jul 2026 21:19:46 +0000 (22:19 +0100)
commit9342ddbd71ed67bf5ab79c1e4e79222959a366b2
treec7fcfd03ff8b1d29150198d462bb3f27febaf110
parent36d1a194a977dd7b776d632454608d2bdb889d08
pr: guard input position update against overflow

* src/pr.c (char_to_clump): Use ckd_add() and report integer overflow.
* tests/pr/options.sh: Add a test case.
* NEWS: Mention the bug fix.
Fixes https://bugs.gnu.org/81393
NEWS
src/pr.c
tests/pr/options.sh