diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index 25ba63fd344cc99e89bdf80952066f262963f53e..3605f49a5ce5e0ef00adbe1d3159225dd3be6049 100644 --- a/source/client/src/clientImpl.c +++ b/source/client/src/clientImpl.c @@ -1905,6 +1905,10 @@ int32_t appendTbToReq(SArray* pList, int32_t pos1, int32_t len1, int32_t pos2, i tbLen = len1; } + if (dbLen <= 0 || tbLen <= 0) { + return -1; + } + if (tNameSetDbName(&name, acctId, dbName, dbLen)) { return -1; }