FlowCrypt / flowcrypt-browser

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

"RangeError: Maximum call stack size exceeded" when decrypting large PGP/MIME message #5527

Open sosnovsky opened 9 months ago

sosnovsky commented 9 months ago

Reported by customer: RangeError: Maximum call stack size exceeded error is shown when trying to decrypt FES reply with 4mb attachment

martgil commented 6 months ago

Affected users:

https://mail.google.com/mail/u/human@flowcrypt.com/#inbox/FMfcgzGxSHfcQdgHTHcnHMNdKvlpvGjz

martgil commented 6 months ago

Hi, @sosnovsky Do you know any workaround for this one?

sosnovsky commented 6 months ago

Hi @martgil, this bug is quite difficult to reproduce - it happened for me a couple times and now even larger PGP/MIME messages are decrypted without errors (the same for customer who initially reported issue). Affected user can try to restart browser or try to open this message in another browser (firefox)

martgil commented 6 months ago

Thanks, Roma. I will also try to find a way to reproduce this in a manner that increases the likelihood of replication, if possible.

sosnovsky commented 6 months ago

Thanks, Roma. I will also try to find a way to reproduce this in a manner that increases the likelihood of replication, if possible.

Ok, initially I was able to reproduce by sending reply with 4mb attachment to password-protected message from FES, but now the same message is decrypted without any issues.