diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2022-08-18 12:38:00 +0000 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2022-08-23 15:09:54 +0000 |
commit | aac685640aba01867ed54c1d2d2a5c64e4a7b656 (patch) | |
tree | 977de99a9c203f84da67990e01530ed787db52b7 /src | |
parent | 5b88feeb7f81905df0cffc5d7cb372c98cfa949e (diff) |
classify: fix coverity 249223
Day1 latent integer overflow.
vnet_classify_add_del defines new_hash as u32 - so replace a u64 type with u32
in split_and_rehash as well.
Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I51384a2db1caa4099b4d2ac25cd185bd108da037
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/classify/vnet_classify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/classify/vnet_classify.c b/src/vnet/classify/vnet_classify.c index 8281be5bd15..305521be267 100644 --- a/src/vnet/classify/vnet_classify.c +++ b/src/vnet/classify/vnet_classify.c @@ -293,7 +293,7 @@ split_and_rehash (vnet_classify_table_t * t, for (i = 0; i < length_in_entries; i++) { - u64 new_hash; + u32 new_hash; v = vnet_classify_entry_at_index (t, old_values, i); |