chore: validate tag val
This commit is contained in:
parent
674a9954ec
commit
fc905406d5
|
@ -1247,6 +1247,7 @@ static int32_t tPutTagVal(uint8_t *p, STagVal *pTagVal, int8_t isJson) {
|
|||
if (isJson) {
|
||||
n += tPutCStr(p ? p + n : p, pTagVal->pKey);
|
||||
} else {
|
||||
ASSERTS(pTagVal->cid > 0, "Invalid tag cid %" PRIi16, pTagVal->cid);
|
||||
n += tPutI16v(p ? p + n : p, pTagVal->cid);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue