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:13 -0400 |
commit | 02a75f8369b1b14b709349ee60b29f79b70320f6 (patch) | |
tree | c26f1d2778567c1aa0826b36f1614193cf95a6dd /src/backend/executor/nodeModifyTable.c | |
parent | bc49f8780b361591141e35c03ffb17d4035847cb (diff) | |
download | postgresql-02a75f8369b1b14b709349ee60b29f79b70320f6.tar.gz postgresql-02a75f8369b1b14b709349ee60b29f79b70320f6.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/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions