aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/common.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-10-16 11:59:13 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-10-16 11:59:31 -0400
commit7004ce75897e008442673289b7c71af2832200f8 (patch)
tree46ea14e2c8854c0463900ed7e2a99a1ffa59a009 /src/bin/scripts/common.c
parent05e6fa8b1bcad527629bbfa04d9fc0d29ca790a2 (diff)
downloadpostgresql-7004ce75897e008442673289b7c71af2832200f8.tar.gz
postgresql-7004ce75897e008442673289b7c71af2832200f8.zip
Add missing error check in pgcrypto/crypt-md5.c.
In theory, the second px_find_digest call in px_crypt_md5 could fail even though the first one succeeded, since resource allocation is required. Don't skip testing for a failure. (If one did happen, the likely result would be a crash rather than clean recovery from an OOM failure.) The code's been like this all along, so back-patch to all supported branches. Daniel Gustafsson Discussion: https://postgr.es/m/AA8D6FE9-4AB2-41B4-98CB-AE64BA668C03@yesql.se
Diffstat (limited to 'src/bin/scripts/common.c')
0 files changed, 0 insertions, 0 deletions