wireshark/wsutil/wmem
John Thacker d086f2733b wmem: Fix leak in block_fast when realloc'ing jumbo blocks
In block fast wmem_allocator is used, keep the double linked
list of jumbo blocks accurate by pointing the prev pointer of
the old head (if it exists) to the newly allocated jumbo block.

This prevents a leak if a jumbo block which is not the most
recently added jumbo block is realloc'ed. If the prev pointer
isn't set properly, then all the jumbo blocks added afterwards
will be lost from the list and leaked.

Fix #19259
2023-08-10 01:19:21 -04:00
..
wmem-int.h Make wmem and wsutil a single logical library 2023-02-08 11:21:19 +00:00
wmem.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_allocator.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_allocator_block.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_allocator_block.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_allocator_block_fast.c wmem: Fix leak in block_fast when realloc'ing jumbo blocks 2023-08-10 01:19:21 -04:00
wmem_allocator_block_fast.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_allocator_simple.c
wmem_allocator_simple.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_allocator_strict.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_allocator_strict.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_array.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_array.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_core.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_core.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_interval_tree.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_interval_tree.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_list.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_list.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_map.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_map.h wmem: map and multimap include wmem_list 2023-07-09 20:56:33 -04:00
wmem_map_int.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_miscutl.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_miscutl.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_multimap.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_multimap.h wmem: map and multimap include wmem_list 2023-07-09 20:56:33 -04:00
wmem_queue.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_stack.c Make wmem and wsutil a single logical library 2023-02-08 11:21:19 +00:00
wmem_stack.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
wmem_strbuf.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_strbuf.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_strutl.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_strutl.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_test.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_tree-int.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_tree.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_tree.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_user_cb.c Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_user_cb.h Convert wmem to C99 types 2023-06-17 17:38:53 +00:00
wmem_user_cb_int.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00