Re: Potential use of uninitialized context in pgcrypto

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2020-10-16T15:47:21Z
Lists: pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes:
> Even though we know that the digest algorithm exists when we reach the second
> call, we must check the returnvalue from each call to px_find_digest to handle
> allocation errors.

Agreed, it's a bug.  Will push in a bit.

			regards, tom lane



Commits

  1. Add missing error check in pgcrypto/crypt-md5.c.