summaryrefslogtreecommitdiff
path: root/contrib/jsonb_plpython/jsonb_plpython.c
diff options
context:
space:
mode:
authorRichard Guo2025-03-26 08:46:51 +0000
committerRichard Guo2025-03-26 08:46:51 +0000
commit7c82b4f711877b175142bb2b2a6e2c2ee2429441 (patch)
tree3bb928505abaf48be9b042e6df2d753b59a9075e /contrib/jsonb_plpython/jsonb_plpython.c
parent787514b30bb7dd0b3484d6cb717e3b9aafc06c4a (diff)
Fix integer-overflow problem in scram_SaltedPassword()
Setting the iteration count for SCRAM secret generation to INT_MAX will cause an infinite loop in scram_SaltedPassword() due to integer overflow, as the loop uses the "i <= iterations" comparison. To fix, use "i < iterations" instead. Back-patch to v16 where the user-settable GUC scram_iterations has been added. Author: Kevin K Biju <[email protected]> Reviewed-by: Richard Guo <[email protected]> Reviewed-by: Michael Paquier <[email protected]> Discussion: https://postgr.es/m/CAM45KeEMm8hnxdTOxA98qhfZ9CzGDdgy3mxgJmy0c+2WwjA6Zg@mail.gmail.com
Diffstat (limited to 'contrib/jsonb_plpython/jsonb_plpython.c')
0 files changed, 0 insertions, 0 deletions