memflow-py icon indicating copy to clipboard operation
memflow-py copied to clipboard

Support null terminated string types

Open emesare opened this issue 3 years ago • 1 comments

https://docs.python.org/3/library/ctypes.html#ctypes.c_char_p https://docs.python.org/3/library/ctypes.html#ctypes.c_wchar_p

memflow already supports reading null terminated strings. Only on UTF-8 encoded strings, however. We will need our own for c_wchar_p.

emesare avatar Dec 23 '22 21:12 emesare

Preliminary support added with: https://github.com/memflow/memflow-py/commit/e76e46e050a9d333227897dd7add41513da98b92. Once we move to deduplicate our memory read/write functions, broad support for these null terminated string readers will be added.

emesare avatar Jan 05 '23 21:01 emesare