wireshark/wsutil/wmem
João Valverde 47348ae598 dfilter: Add support for literal strings with null bytes
Before:
    Filter: frame matches "abc\x00def"
    dftest: \x00 (NUL byte) cannot be used with a regular string.
    	frame matches "abc\x00def"
    	                  ^~~~
    Filter: _ws.ftypes.string == "a string with a \0 byte"
    dftest: \0 (NUL byte) cannot be used with a regular string.
    	_ws.ftypes.string == "a string with a \0 byte"
    	                                      ^~

After:
    Filter: frame matches "abc\x00def"

    Syntax tree:
     0 TEST_MATCHES:
       1 FIELD(frame)
       1 PCRE(abc\0def)

    Instructions:
    00000 READ_TREE		frame -> reg#0
    00001 IF_FALSE_GOTO	3
    00002 ANY_MATCHES	reg#0 matches abc\0def
    00003 RETURN

    Filter: _ws.ftypes.string == "a string with a \0 byte"

    Syntax tree:
     0 TEST_ANY_EQ:
       1 FIELD(_ws.ftypes.string)
       1 FVALUE("a string with a \0 byte" <FT_STRING>)

    Instructions:
    00000 READ_TREE		_ws.ftypes.string -> reg#0
    00001 IF_FALSE_GOTO	3
    00002 ANY_EQ		reg#0 == "a string with a \0 byte" <FT_STRING>
    00003 RETURN

Fixes issue #16156.
2022-06-21 15:10:08 +00:00
..
CMakeLists.txt wmem: Add a multimap 2021-11-21 07:16:55 -05:00
wmem-int.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_allocator.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_allocator_block.c
wmem_allocator_block.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_allocator_block_fast.c
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
wmem_allocator_strict.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_array.c
wmem_array.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
wmem_core.c
wmem_core.h Remove some circular dependencies on wireshark.h 2022-01-05 13:31:52 +00:00
wmem_interval_tree.c Replace g_snprintf() with snprintf() 2021-12-19 20:06:13 +00:00
wmem_interval_tree.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
wmem_list.c
wmem_list.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
wmem_map.c
wmem_map.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
wmem_map_int.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_miscutl.c wmem: Use better names in the API 2021-11-27 19:39:27 +00:00
wmem_miscutl.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
wmem_multimap.c wmem: Add a multimap 2021-11-21 07:16:55 -05:00
wmem_multimap.h Add files with WS_DLL_PUBLIC to Doxygen part2 2021-11-30 06:47:35 +00:00
wmem_queue.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_stack.c
wmem_stack.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
wmem_strbuf.c dfilter: Add support for literal strings with null bytes 2022-06-21 15:10:08 +00:00
wmem_strbuf.h dfilter: Add support for literal strings with null bytes 2022-06-21 15:10:08 +00:00
wmem_strutl.c dfilter: Add support for literal strings with null bytes 2022-06-21 15:10:08 +00:00
wmem_strutl.h dfilter: Add support for literal strings with null bytes 2022-06-21 15:10:08 +00:00
wmem_test.c Move wmem string utility functions to wsutil 2021-12-19 10:47:50 +00:00
wmem_tree-int.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00
wmem_tree.c
wmem_tree.h Make wmem_print_tree public. 2021-12-06 16:06:13 +00:00
wmem_user_cb.c
wmem_user_cb.h Add files with WS_DLL_PUBLIC to Doxygen 2021-11-29 21:27:45 +00:00
wmem_user_cb_int.h wsutil: Add header files to Doxygen 2021-11-30 07:30:34 +00:00