rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
797 stars 96 forks source link

Fix crash in `winutils.c` when attempting to convert strings with `NULL` #202

Open rdbo opened 7 months ago

rdbo commented 7 months ago

When passing NULL to the buffer of the convertion functions, it should allocate the string for you and return it. For some reason, that is crashing. Libmem does not use this feature in any APIs, even though it is implemented. But should still be fixed.