[TD-4521]<fix>

This commit is contained in:
yihaoDeng 2021-06-08 15:34:36 +08:00
parent 096fadd75e
commit a87f83bff0
1 changed files with 3 additions and 0 deletions

View File

@ -59,6 +59,9 @@ bool taosMbsToUcs4(char *mbs, size_t mbsLength, char *ucs4, int32_t ucs4_max_len
iconv_close(cd);
if (len != NULL) {
*len = (int32_t)(ucs4_max_len - outLeft);
if (*len < 0) {
return false;
}
}
return true;