diff options
author | Oto Šťáva <oto.stava@nic.cz> | 2024-05-17 13:22:51 +0200 |
---|---|---|
committer | Oto Šťáva <oto.stava@nic.cz> | 2024-05-20 12:18:42 +0200 |
commit | b185a8be6be57aab97ba6fc69ba72d2a5005e728 (patch) | |
tree | 7520b4c030450d0e0dc593e0c16733500092825f /modules | |
parent | utils/cache_gc: use lib/generic/array instead of dynarray (diff) | |
download | knot-resolver-b185a8be6be57aab97ba6fc69ba72d2a5005e728.tar.xz knot-resolver-b185a8be6be57aab97ba6fc69ba72d2a5005e728.zip |
modules/hints: fix dname bounds check
This check was introduced to fix Clang-Tidy errors, but was factually
not completely correct, tripping Coverity Scan.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/hints/hints.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/hints/hints.c b/modules/hints/hints.c index af05ee24..2195ca3a 100644 --- a/modules/hints/hints.c +++ b/modules/hints/hints.c @@ -282,7 +282,7 @@ static int del_pair(struct hints_data *data, const char *name, const char *addr) return kr_error(EINVAL); } size_t key_len = knot_dname_size(key); - if (kr_fails_assert(key_len <= INT_MAX)) + if (kr_fails_assert(key_len <= KNOT_DNAME_MAXLEN)) return kr_error(EINVAL); if (addr) { |