mirror of
https://github.com/postgres/postgres.git
synced 2026-02-16 09:08:23 -05:00
Fix test "NUL byte in text decrypt" for --without-zlib builds.
Backpatch-through: 14 Security: CVE-2026-2006
This commit is contained in:
parent
7e82d9a04d
commit
5301b2b7de
3 changed files with 15 additions and 12 deletions
|
|
@ -394,7 +394,8 @@ select pgp_sym_decrypt(pgp_sym_encrypt_bytea('P', 'key'), 'key', 'debug=1');
|
|||
NOTICE: dbg: parse_literal_data: data type=b
|
||||
ERROR: Not text data
|
||||
-- NUL byte in text decrypt. Ciphertext source:
|
||||
-- printf 'a\x00\xc' | gpg --homedir /nonexistent --textmode \
|
||||
-- printf 'a\x00\xc' | gpg --homedir /nonexistent \
|
||||
-- --personal-compress-preferences uncompressed --textmode \
|
||||
-- --personal-cipher-preferences aes --no-emit-version --batch \
|
||||
-- --symmetric --passphrase key --armor
|
||||
do $$
|
||||
|
|
@ -402,9 +403,9 @@ begin
|
|||
perform pgp_sym_decrypt(dearmor('
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jA0EBwMCLd9OvySmZNZg0jgBe7vGTmnje5HGXI+zsIQ99WPZu4Zs/P6pQcZ+HZ4n
|
||||
SZQHOfE8tagjB6Rqow82QpSBiOfWn4qjhQ==
|
||||
=c2cz
|
||||
jA0EBwMCXLc8pozB10Fg0jQBVUID59TLvWutJp0j6eh9ZgjqIRzdYaIymFB8y4XH
|
||||
vu0YlJP5D5BX7yqZ+Pry7TlDmiFO
|
||||
=rV7z
|
||||
-----END PGP MESSAGE-----
|
||||
'), 'key', 'debug=1');
|
||||
exception when others then
|
||||
|
|
|
|||
|
|
@ -390,7 +390,8 @@ select pgp_sym_decrypt(pgp_sym_encrypt_bytea('P', 'key'), 'key', 'debug=1');
|
|||
NOTICE: dbg: parse_literal_data: data type=b
|
||||
ERROR: Not text data
|
||||
-- NUL byte in text decrypt. Ciphertext source:
|
||||
-- printf 'a\x00\xc' | gpg --homedir /nonexistent --textmode \
|
||||
-- printf 'a\x00\xc' | gpg --homedir /nonexistent \
|
||||
-- --personal-compress-preferences uncompressed --textmode \
|
||||
-- --personal-cipher-preferences aes --no-emit-version --batch \
|
||||
-- --symmetric --passphrase key --armor
|
||||
do $$
|
||||
|
|
@ -398,9 +399,9 @@ begin
|
|||
perform pgp_sym_decrypt(dearmor('
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jA0EBwMCLd9OvySmZNZg0jgBe7vGTmnje5HGXI+zsIQ99WPZu4Zs/P6pQcZ+HZ4n
|
||||
SZQHOfE8tagjB6Rqow82QpSBiOfWn4qjhQ==
|
||||
=c2cz
|
||||
jA0EBwMCXLc8pozB10Fg0jQBVUID59TLvWutJp0j6eh9ZgjqIRzdYaIymFB8y4XH
|
||||
vu0YlJP5D5BX7yqZ+Pry7TlDmiFO
|
||||
=rV7z
|
||||
-----END PGP MESSAGE-----
|
||||
'), 'key', 'debug=1');
|
||||
exception when others then
|
||||
|
|
|
|||
|
|
@ -289,7 +289,8 @@ VsxxqLSPzNLAeIspJk5G
|
|||
select pgp_sym_decrypt(pgp_sym_encrypt_bytea('P', 'key'), 'key', 'debug=1');
|
||||
|
||||
-- NUL byte in text decrypt. Ciphertext source:
|
||||
-- printf 'a\x00\xc' | gpg --homedir /nonexistent --textmode \
|
||||
-- printf 'a\x00\xc' | gpg --homedir /nonexistent \
|
||||
-- --personal-compress-preferences uncompressed --textmode \
|
||||
-- --personal-cipher-preferences aes --no-emit-version --batch \
|
||||
-- --symmetric --passphrase key --armor
|
||||
do $$
|
||||
|
|
@ -297,9 +298,9 @@ begin
|
|||
perform pgp_sym_decrypt(dearmor('
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
jA0EBwMCLd9OvySmZNZg0jgBe7vGTmnje5HGXI+zsIQ99WPZu4Zs/P6pQcZ+HZ4n
|
||||
SZQHOfE8tagjB6Rqow82QpSBiOfWn4qjhQ==
|
||||
=c2cz
|
||||
jA0EBwMCXLc8pozB10Fg0jQBVUID59TLvWutJp0j6eh9ZgjqIRzdYaIymFB8y4XH
|
||||
vu0YlJP5D5BX7yqZ+Pry7TlDmiFO
|
||||
=rV7z
|
||||
-----END PGP MESSAGE-----
|
||||
'), 'key', 'debug=1');
|
||||
exception when others then
|
||||
|
|
|
|||
Loading…
Reference in a new issue