Skip to content

Commit

Permalink
Add test case, reproducing Botan/Windows crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Nov 16, 2023
1 parent aa11f73 commit e75fc49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tests/cli_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4165,6 +4165,13 @@ def test_sym_encryption__rnp_aead(self):
AEAD_M, AEAD_B, Encryption.Z_R):
rnp_sym_encryption_rnp_aead(size, cipher, z, [aead, bits], GPG_AEAD)

def test_sym_encrypted__rnp_aead_botan_crash(self):
dst, = reg_workfiles('cleartext', '.txt')
rnp_decrypt_file(data_path('test_messages/message.aead-windows-issue'), dst)
remove_files(dst)
rnp_decrypt_file(data_path('test_messages/message.aead-windows-issue2'), dst)
remove_files(dst)

def test_aead_chunk_edge_cases(self):
if not RNP_AEAD:
print('AEAD is not available for RNP - skipping.')
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit e75fc49

Please sign in to comment.