wireshark/wsutil/wmem
Guy Harris e490f93072 wmem: don't check whether sizeof(type) is <= 0.
This should fix the cppcheck warning "The unsigned expression
'sizeof(struct _PKT_INFO)' will never be negative so it is either
pointless or an error to check if it is."

wmem_safe_mult() was only used to do an overflow-safe multiplication of
a type size and a count of elements of that type; replace it with
wmem_safe_mult_type_size(), which takes the type as the first argument,
and checks only whether the count of elements is <= 0.
2021-08-24 20:58:00 -07:00
..
CMakeLists.txt
wmem-int.h
wmem.h
wmem_allocator.h
wmem_allocator_block.c
wmem_allocator_block.h
wmem_allocator_block_fast.c
wmem_allocator_block_fast.h
wmem_allocator_simple.c
wmem_allocator_simple.h
wmem_allocator_strict.c
wmem_allocator_strict.h
wmem_array.c
wmem_array.h
wmem_core.c
wmem_core.h wmem: don't check whether sizeof(type) is <= 0. 2021-08-24 20:58:00 -07:00
wmem_interval_tree.c
wmem_interval_tree.h
wmem_list.c
wmem_list.h
wmem_map.c
wmem_map.h
wmem_map_int.h
wmem_miscutl.c
wmem_miscutl.h
wmem_queue.h
wmem_stack.c
wmem_stack.h
wmem_strbuf.c
wmem_strbuf.h
wmem_strutl.c
wmem_strutl.h
wmem_test.c
wmem_tree-int.h
wmem_tree.c
wmem_tree.h
wmem_user_cb.c
wmem_user_cb.h
wmem_user_cb_int.h