Handle corrupted decrypted passwords gracefully.
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 6 Sep 2018 20:11:05 +0000 (22:11 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 6 Sep 2018 20:11:05 +0000 (22:11 +0200)
commit1c069e3069d795a0a845d1f35b23c8a1250bce74
treef3bbbfed6e80af282bec7baba243d15d6b328a0b
parentd97d7cbec17b5365a8c0adc5a9d88a44aedb1f31
Handle corrupted decrypted passwords gracefully.

Check whether the decrypted password is a valid UTF-8
string, and return an empty string if not, instead of
returning garbage, probably not NULL-terminated data,
and causing problems down the road.
src/password.c