FlowCrypt / flowcrypt-browser

FlowCrypt Browser extension for Chrome and Firefox
https://flowcrypt.com
Other
375 stars 46 forks source link

Browser extension froze when trying to decrypt a compressed PDF file with 340+ pages #4547

Open martgil opened 2 years ago

martgil commented 2 years ago

Description: Our browser extension was normally able to decrypt pdf and other files. However, we received an unusual scenario where the browser extension is unable to decrypt a compressed pdf file with 340+ pages.

In my testing cases, most of the encrypted attachments are getting decrypted without any problem - the problem is only noticeable with zipped pdf files (only pdf files are tested for the moment).

The user won't be able to download the file either so the attachment seems to be inaccessible.

Reference (with test file attachment included): https://mail.google.com/mail/u/flowcrypt.compatibility@gmail.com/#inbox/WhctKKXXPDKqwfXtDPhhzxBlqlfxDtmnhVSNZWGttjkWrHRlbTrNDKQqjfzpSjcQmZCpBXQ

tomholub commented 1 year ago

Were you able to reproduce freezing with your own PDF? If yes, could you link an online sample here for testing?

martgil commented 1 year ago

@tomholub Sorry, what I really mean is a zipped pdf file - it makes the browser extension crash and unusable (which can be resolved only by re-enabling it from the chrome://extension or about:addons)

We can use the sample file from the compatibility account: https://mail.google.com/mail/u/flowcrypt.compatibility@gmail.com/#inbox/WhctKKXXPDKqwfXtDPhhzxBlqlfxDtmnhVSNZWGttjkWrHRlbTrNDKQqjfzpSjcQmZCpBXQ

sosnovsky commented 1 month ago

Hi @martgil, I tried to decrypt mentioned message and it worked well for me, can you please re-test it on your side to check if original issue is fixed now.