diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-08-05 18:43:29 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-08-05 18:43:29 -0600 |
commit | 3d7933462d3e0017052cf23168e946453aa7bc4e (patch) | |
tree | 207029aa58f48c14fe7fc715a90b0b6227b4d15f /pith/charconv | |
parent | e967596d91f79a6f34374fe4ee747a55792b5ffc (diff) | |
download | alpine-3d7933462d3e0017052cf23168e946453aa7bc4e.tar.xz |
* Crash when Alpine frees memory on a system where LC_CTYPE is not
configured, and the user calls the file browser to attach files to
a message. Reported by Luis Gerardo Tejero.
Diffstat (limited to 'pith/charconv')
-rw-r--r-- | pith/charconv/utf8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pith/charconv/utf8.c b/pith/charconv/utf8.c index 2bb301c7..e1f16b3f 100644 --- a/pith/charconv/utf8.c +++ b/pith/charconv/utf8.c @@ -283,7 +283,7 @@ convert_to_utf8(char *str, char *fromcharset, int flags) } /* else no conversion necessary */ - if(result.data) + if(result.data && result.data != src.data) fs_give((void **) &result.data); result.size = 0; |