bricke / Qt-AES

Native Qt AES encryption class
The Unlicense
501 stars 187 forks source link

Heap corruption #23

Open nato4r opened 5 years ago

nato4r commented 5 years ago

QByteArray decrypted_file_buffer_1 = QAESEncryption::Decrypt(QAESEncryption::AES_256, QAESEncryption::CBC, encrypted_file_buffer_1, hash_key, hash_iv);

QByteArray decrypted_file_buffer_2 = QAESEncryption::Decrypt(QAESEncryption::AES_256, QAESEncryption::CBC, encrypted_file_buffer_2, hash_key, hash_iv);

Calling like this for multiple file buffers results in random heap corruption. It doesn't happen while using openssl.

bricke commented 5 years ago

Could you write a test for it?