dinhvh / libetpan

Mail Framework for C Language
www.etpan.org
Other
612 stars 284 forks source link

Current master is unstable: 'invalid pointer' on establishing IMAP connection with TLS #407

Open cobratbq opened 3 years ago

cobratbq commented 3 years ago

I recently tried using current master branch in an attempt to get a recent version of libetpan which includes the CVE fixes that were merged at the end of 2020, i.e. issues #387 and #388, as there is no release version that includes these fixes. The latest master causes a crash due to invalid pointer. This seems to be triggered upon connecting to an IMAP server using TLS.

An issue captured the crash with limited debug information for the Claws-Mail flatpak package when using IMAP. I then decided to go with an earlier commit 80f0f515555de2798c6984db507d406d0153f1f5 which does not exhibit this problem.

It seems that the recent patch series introduced it. I report this such that you are aware that such an issue exists.

dinhvh commented 2 years ago

Sorry for the late answer. I reverted a couple of commits on master. Could you check if it fixes this crash?