wireshark/epan/wmem
Guy Harris d4ef22db8f Make sure CAPACITY() doesn't shift the 1 out of range.
Make the 1 we shift left the size of a size_t, so it'll only go out of
range if the result couldn't possibly fit in a size_t.  (That should
also make the object of the shift unsigned, which may squelch some other
complaints.)

Not that the map is *likely* to be bigger than 4GB, but it should
squelch some complaints from Visual Studio Code Analysis.

Change-Id: I489bfe6b1d9d4329c267936d9106dbba4388c492
Reviewed-on: https://code.wireshark.org/review/26163
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-02-28 02:52:03 +00:00
..
CMakeLists.txt CMake: Allow user build flags to override default build flags 2017-10-13 21:32:18 +00:00
Makefile.am autotools: Library build products don't need explicit cleaning 2017-11-18 22:29:41 +00:00
wmem.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_allocator.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_allocator_block.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_allocator_block.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_allocator_block_fast.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_allocator_block_fast.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_allocator_simple.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_allocator_simple.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_allocator_strict.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_allocator_strict.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_array.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_array.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_core.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_core.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_interval_tree.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_interval_tree.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_list.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_list.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_map.c Make sure CAPACITY() doesn't shift the 1 out of range. 2018-02-28 02:52:03 +00:00
wmem_map.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_map_int.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_miscutl.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_miscutl.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_queue.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_scopes.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_scopes.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_stack.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_stack.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_strbuf.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_strbuf.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_strutl.c WMEM: Add strjoin routines. 2018-02-13 06:18:09 +00:00
wmem_strutl.h WMEM: Add strjoin routines. 2018-02-13 06:18:09 +00:00
wmem_test.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_tree-int.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_tree.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_tree.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_user_cb.c wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_user_cb.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00
wmem_user_cb_int.h wmem: use SPDX identifiers. 2018-02-08 19:29:02 +00:00