dinhvh / libetpan

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

Avoid double-free of the memory allocated inside charconv method #436

Open miximka opened 1 year ago

miximka commented 1 year ago

On iOS 17 beta 1 iconv fails to convert strings for some reason causing a failure which, in turn, causes the memory allocated for a result parameter inside charconv method to be freed two times (first inside charconv line 175, and second in the mailmime_encoded_phrase_parse line 180).