wireshark/epan/wmem
Peter Wu acba178546 wmem: ensure wmem_memdup(..., NULL, 0) returns NULL
Rather than requiring all callers to pass a non-null source argument,
explicitly allow a NULL source when the size is zero. This is consistent
with g_memdup behavior.

While at it, fix a memleak and avoid memset(0,0,0) in tests.

Change-Id: I86a092625a508544d180da959e4afdd0366539f4
Reviewed-on: https://code.wireshark.org/review/26496
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Mališa Vučinić <malishav@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Evan Huus <eapache@gmail.com>
2018-03-19 16:15:35 +00:00
..
CMakeLists.txt CMake: Exclude wmem_test from the default build 2018-03-13 05:33:15 +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: ensure wmem_memdup(..., NULL, 0) returns NULL 2018-03-19 16:15:35 +00:00
wmem_miscutl.h wmem: ensure wmem_memdup(..., NULL, 0) returns NULL 2018-03-19 16:15:35 +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: ensure wmem_memdup(..., NULL, 0) returns NULL 2018-03-19 16:15:35 +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