add INSISTs to silence tainted data false positive in Coverity

(cherry picked from commit 83a5c670b8)
This commit is contained in:
Mark Andrews 2014-06-12 10:49:53 +10:00
parent 0f09809855
commit 615ff95bd1

View file

@ -318,6 +318,8 @@ tostruct_hip(ARGS_TOSTRUCT) {
goto cleanup;
isc_region_consume(&region, hip->hit_len);
INSIST(hip->key_len <= region.length);
hip->key = mem_maybedup(mctx, region.base, hip->key_len);
if (hip->key == NULL)
goto cleanup;