Re: Potential use of uninitialized context in pgcrypto

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Potential use of uninitialized context in pgcrypto
Date: 2020-10-16 15:47:21
Message-ID: 4154203.1602863241@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Daniel Gustafsson <daniel(at)yesql(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Lakhin 2020-10-16 16:00:00 Re: Sometimes the output to the stdout in Windows disappears
Previous Message Bruce Momjian 2020-10-16 15:04:49 Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view?