mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 17:30:22 -04:00
add INSISTs to silence tainted data false positive in Coverity
This commit is contained in:
parent
8a57b1e9d6
commit
83a5c670b8
1 changed files with 2 additions and 0 deletions
|
|
@ -318,6 +318,8 @@ tostruct_hip(ARGS_TOSTRUCT) {
|
|||
goto cleanup;
|
||||
isc_region_consume(®ion, 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue