]> git.ipfire.org Git - thirdparty/coreutils.git/commit
factor: check unsigned char counts
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 May 2025 18:57:05 +0000 (11:57 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 00:12:39 +0000 (17:12 -0700)
commit374f5fdcc1cca96e2ae89168eba7d9f25c4d48c9
tree468724ac79425eb8c9526ba1a203adee1771cd78
parent5ae141ae14e97b6d4efe5c974817ffa4f04b02d8
factor: check unsigned char counts

* src/factor.c (MAX_NFACTS): Allow word size of 128 bits,
even if this is only theoretical now.
Check that struct factors’s unsigned char counts won’t overflow.
src/factor.c