]> git.ipfire.org Git - thirdparty/coreutils.git/commit
factor: fix mp_factor_using_pollard_rho aliasing
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 04:22:12 +0000 (21:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jul 2025 05:01:42 +0000 (22:01 -0700)
commit4171ca33536219248afa1b74a561f1adc5739b64
tree5c0fac75ad4d73cf85fe887c8f06fbf173f027c4
parent5fde9ad14b87bbef8a7decdc0720768c4ac1e6f8
factor: fix mp_factor_using_pollard_rho aliasing

* src/factor.c (mp_factor_using_pollard_rho):
Fix recently-introduced aliasing bug by computing q
before g gets updated in place.  Problem discovered
on a hypothetical platform where W_TYPE_SIZE
is neither 32 nor 64.
src/factor.c