未验证 提交 9331c1b2 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #10485 from taosdata/fix/TD-13616-D

[TD-13616]<fix>: fixed wrong length parsing in special chars escaping
......@@ -2140,7 +2140,7 @@ static int32_t parseSmlKey(TAOS_SML_KV *pKV, const char **index, SHashObj *pHash
static int32_t parseSmlValue(TAOS_SML_KV *pKV, const char **index,
bool *is_last_kv, SSmlLinesInfo* info, bool isTag) {
const char *start, *cur;
const char *start, *cur, *tmp;
int32_t ret = TSDB_CODE_SUCCESS;
char *value = NULL;
int16_t len = 0;
......@@ -2188,8 +2188,11 @@ static int32_t parseSmlValue(TAOS_SML_KV *pKV, const char **index,
}
//Escape special character
if (*cur == '\\') {
tmp = cur;
escapeSpecialCharacter(isTag ? 2 : 3, &cur);
len++;
if (tmp != cur) {
continue;
}
}
cur++;
len++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册