Encoding protection for pgcrypto

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Encoding protection for pgcrypto
Date: 2024-02-05 03:15:15
Message-ID: CAGRkXqRZyo0gLxPJqUsDqtWYBbgM14betsHiLRPj9mo2=z9VvA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

Currently, pgp_sym_decrypt_text and pgp_pub_decrypt_text doesn't
enforce database encoding validation even when returning text. This
patch adds validation and dedicated tests to verify its
effectiveness. Additionally, some existing unit tests were moved to
the new tests as they failed in some encoding.

Thanks,
SHihao

Attachment Content-Type Size
fix_pycrypto.patch application/octet-stream 7.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Guo 2024-02-05 03:18:18 Re: Reordering DISTINCT keys to match input path's pathkeys
Previous Message Yugo NAGATA 2024-02-05 02:47:15 Re: Small fix on COPY ON_ERROR document