clang analyzer found this issue.
other archive_mstring_copy_* has the pattern:
```
if (xxx == NULL) {
aes->aes_set = 0;
return (0);
}
```
archive_mstring_copy_utf8() didn't follow that pattern, so if NULL is passed in, it will call strlen(NULL).
Noticed that archive_mstring_copy_wcs_len() doesn't follow the pattern either.
Fixes #1142
{
if (utf8 == NULL) {
aes->aes_set = 0;
+ return (0);
}
aes->aes_set = AES_SET_UTF8;
archive_string_empty(&(aes->aes_mbs));
{
if (wcs == NULL) {
aes->aes_set = 0;
+ return (0);
}
aes->aes_set = AES_SET_WCS; /* Only WCS form set. */
archive_string_empty(&(aes->aes_mbs));