Commit 8a2ff13c authored by Mark Andrews's avatar Mark Andrews
Browse files

add INSISTs to silence tainted data false positive in Coverity

parent 889eb2e0
......@@ -465,6 +465,7 @@ tostruct_tkey(ARGS_TOSTRUCT) {
/*
* Key.
*/
INSIST(tkey->keylen + 2 <= sr.length);
tkey->key = mem_maybedup(mctx, sr.base, tkey->keylen);
if (tkey->key == NULL)
goto cleanup;
......@@ -479,6 +480,7 @@ tostruct_tkey(ARGS_TOSTRUCT) {
/*
* Other.
*/
INSIST(tkey->otherlen <= sr.length);
tkey->other = mem_maybedup(mctx, sr.base, tkey->otherlen);
if (tkey->other == NULL)
goto cleanup;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment