add INSISTs to silence tainted data false positive in Coverity

This commit is contained in:
Mark Andrews 2014-06-12 10:49:53 +10:00
parent 8a57b1e9d6
commit 83a5c670b8

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;