mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
add INSISTs to silence tainted data false positive in Coverity
This commit is contained in:
parent
889eb2e055
commit
8a2ff13c3d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user