1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00
Files
postgres/contrib/pgcrypto
Tom Lane a97dfdfd90 Fix Coverity warning about contrib/pgcrypto's mdc_finish().
Coverity points out that mdc_finish returns a pointer to a local buffer
(which of course is gone as soon as the function returns), leaving open
a risk of misbehaviors possibly as bad as a stack overwrite.

In reality, the only possible call site is in process_data_packets()
which does not examine the returned pointer at all.  So there's no
live bug, but nonetheless the code is confusing and risky.  Refactor
to avoid the issue by letting process_data_packets() call mdc_finish()
directly instead of going through the pullf_read() API.

Although this is only cosmetic, it seems good to back-patch so that
the logic in pgp-decrypt.c stays in sync across all branches.

Marko Kreen
2015-01-30 13:05:04 -05:00
..
2011-04-25 22:27:11 +03:00
2010-09-20 22:08:53 +02:00
2010-09-20 22:08:53 +02:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2011-11-17 18:35:07 -03:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00