diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-10-16 11:59:13 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-10-16 11:59:25 -0400 |
commit | 3d338a46a4c342fa1a4e276e0c84532141f4264b (patch) | |
tree | f1931b3a6e5b0109ce92af097dd4d9df4c27fcca /src/timezone/zic.c | |
parent | 2cde0fd6fcaf70a8cf59972c36e86c00cc97e90c (diff) | |
download | postgresql-3d338a46a4c342fa1a4e276e0c84532141f4264b.tar.gz postgresql-3d338a46a4c342fa1a4e276e0c84532141f4264b.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/timezone/zic.c')
0 files changed, 0 insertions, 0 deletions