├── StormMemPoolFix ├── Dependencies │ ├── Detours │ │ ├── samples │ │ │ ├── cping │ │ │ │ ├── cping.dat │ │ │ │ ├── iping.idl │ │ │ │ ├── obj.X86 │ │ │ │ │ └── iping_d.c │ │ │ │ └── ReadMe.Txt │ │ │ ├── echo │ │ │ │ ├── obj.X86 │ │ │ │ │ └── echofx.res │ │ │ │ ├── echonul.cpp │ │ │ │ ├── main.cpp │ │ │ │ ├── echofx.rc │ │ │ │ └── echofx.cpp │ │ │ ├── slept │ │ │ │ ├── obj.X86 │ │ │ │ │ ├── slept.res │ │ │ │ │ └── dslept.res │ │ │ │ ├── slept.h │ │ │ │ ├── slept.rc │ │ │ │ ├── dslept.rc │ │ │ │ └── sleepold.cpp │ │ │ ├── comeasy │ │ │ │ ├── obj.X86 │ │ │ │ │ └── wrotei.res │ │ │ │ ├── wrotei.rc │ │ │ │ └── comeasy.cpp │ │ │ ├── dtest │ │ │ │ ├── obj.X86 │ │ │ │ │ └── dtarge.res │ │ │ │ └── dtarge.rc │ │ │ ├── simple │ │ │ │ ├── obj.X86 │ │ │ │ │ └── simple.res │ │ │ │ ├── simple.rc │ │ │ │ └── sleep5.cpp │ │ │ ├── findfunc │ │ │ │ ├── obj.X86 │ │ │ │ │ ├── extend.res │ │ │ │ │ └── target.res │ │ │ │ ├── target.h │ │ │ │ ├── target.rc │ │ │ │ ├── extend.rc │ │ │ │ ├── findfunc.cpp │ │ │ │ └── target.cpp │ │ │ ├── traceapi │ │ │ │ ├── obj.X86 │ │ │ │ │ └── trcapi.res │ │ │ │ └── trcapi.rc │ │ │ ├── disas │ │ │ │ └── unk.cpp │ │ │ ├── opengl │ │ │ │ ├── testogl.cpp │ │ │ │ └── ogldet.rc │ │ │ ├── talloc │ │ │ │ ├── tdll1x.cpp │ │ │ │ ├── tdll2x.cpp │ │ │ │ ├── tdll3x.cpp │ │ │ │ ├── tdll4x.cpp │ │ │ │ ├── tdll5x.cpp │ │ │ │ ├── tdll6x.cpp │ │ │ │ ├── tdll7x.cpp │ │ │ │ ├── tdll8x.cpp │ │ │ │ └── tdll9x.cpp │ │ │ ├── tryman │ │ │ │ ├── tryman.cpp │ │ │ │ ├── tstman.rc │ │ │ │ └── managed.cs │ │ │ ├── tracemem │ │ │ │ └── trcmem.rc │ │ │ ├── traceser │ │ │ │ └── trcser.rc │ │ │ ├── tracessl │ │ │ │ └── trcssl.rc │ │ │ ├── tracetcp │ │ │ │ └── trctcp.rc │ │ │ ├── tracebld │ │ │ │ ├── trcbld.rc │ │ │ │ └── tracebld.h │ │ │ ├── tracereg │ │ │ │ └── trcreg.rc │ │ │ ├── tracelnk │ │ │ │ └── trclnk.rc │ │ │ ├── excep │ │ │ │ ├── firstexc.h │ │ │ │ └── Makefile │ │ │ ├── README.TXT │ │ │ ├── member │ │ │ │ └── Makefile │ │ │ ├── region │ │ │ │ └── Makefile │ │ │ ├── commem │ │ │ │ └── Makefile │ │ │ ├── dumpi │ │ │ │ └── Makefile │ │ │ ├── einst │ │ │ │ ├── edll1x.cpp │ │ │ │ └── edll2x.cpp │ │ │ ├── dumpe │ │ │ │ └── Makefile │ │ │ ├── withdll │ │ │ │ └── Makefile │ │ │ └── impmunge │ │ │ │ └── Makefile │ │ ├── src │ │ │ ├── disolarm.cpp │ │ │ ├── disolarm64.cpp │ │ │ ├── disolia64.cpp │ │ │ ├── disolx64.cpp │ │ │ ├── disolx86.cpp │ │ │ └── detver.h │ │ ├── bin.X86 │ │ │ ├── comeasy.exe │ │ │ ├── commem.exe │ │ │ ├── cping.exe │ │ │ ├── dbghelp.dll │ │ │ ├── disas.exe │ │ │ ├── dtest.exe │ │ │ ├── dumpe.exe │ │ │ ├── dumpi.exe │ │ │ ├── echonul.exe │ │ │ ├── echonul.exp │ │ │ ├── echonul.lib │ │ │ ├── einst.exe │ │ │ ├── excep.exe │ │ │ ├── member.exe │ │ │ ├── region.exe │ │ │ ├── setdll.exe │ │ │ ├── sleep5.exe │ │ │ ├── slept32.dll │ │ │ ├── slept32.exp │ │ │ ├── slept32.lib │ │ │ ├── sltest.exe │ │ │ ├── sltestp.exe │ │ │ ├── syelogd.exe │ │ │ ├── symtest.exe │ │ │ ├── withdll.exe │ │ │ ├── dslept32.dll │ │ │ ├── dslept32.exp │ │ │ ├── dslept32.lib │ │ │ ├── dtarge32.dll │ │ │ ├── dtarge32.exp │ │ │ ├── dtarge32.lib │ │ │ ├── echofx32.dll │ │ │ ├── echofx32.exp │ │ │ ├── echofx32.lib │ │ │ ├── edll1x32.dll │ │ │ ├── edll1x32.exp │ │ │ ├── edll1x32.lib │ │ │ ├── edll2x32.dll │ │ │ ├── edll2x32.exp │ │ │ ├── edll2x32.lib │ │ │ ├── edll3x32.dll │ │ │ ├── edll3x32.exp │ │ │ ├── edll3x32.lib │ │ │ ├── extend32.dll │ │ │ ├── extend32.exp │ │ │ ├── extend32.lib │ │ │ ├── findfunc.exe │ │ │ ├── simple32.dll │ │ │ ├── simple32.exp │ │ │ ├── simple32.lib │ │ │ ├── sleepbed.exe │ │ │ ├── sleepnew.exe │ │ │ ├── sleepold.exe │ │ │ ├── target32.dll │ │ │ ├── target32.exp │ │ │ ├── target32.lib │ │ │ ├── wrotei32.dll │ │ │ ├── wrotei32.exp │ │ │ └── wrotei32.lib │ │ ├── lib.X86 │ │ │ ├── detours.lib │ │ │ └── syelog.lib │ │ ├── include │ │ │ └── detver.h │ │ ├── LICENSE.md │ │ └── Makefile │ ├── spdlog │ │ ├── .gitattributes │ │ ├── logos │ │ │ └── spdlog.png │ │ ├── include │ │ │ └── spdlog │ │ │ │ ├── fmt │ │ │ │ ├── bundled │ │ │ │ │ ├── locale.h │ │ │ │ │ ├── core.h │ │ │ │ │ └── fmt.license.rst │ │ │ │ ├── xchar.h │ │ │ │ ├── chrono.h │ │ │ │ ├── ostr.h │ │ │ │ ├── ranges.h │ │ │ │ ├── compile.h │ │ │ │ ├── std.h │ │ │ │ └── fmt.h │ │ │ │ ├── details │ │ │ │ ├── windows_include.h │ │ │ │ ├── console_globals.h │ │ │ │ ├── periodic_worker-inl.h │ │ │ │ ├── synchronous_factory.h │ │ │ │ ├── log_msg_buffer.h │ │ │ │ ├── null_mutex.h │ │ │ │ ├── backtracer.h │ │ │ │ ├── log_msg.h │ │ │ │ ├── log_msg-inl.h │ │ │ │ ├── log_msg_buffer-inl.h │ │ │ │ ├── file_helper.h │ │ │ │ └── periodic_worker.h │ │ │ │ ├── fwd.h │ │ │ │ ├── version.h │ │ │ │ ├── formatter.h │ │ │ │ ├── sinks │ │ │ │ ├── sink-inl.h │ │ │ │ ├── sink.h │ │ │ │ ├── basic_file_sink-inl.h │ │ │ │ ├── null_sink.h │ │ │ │ ├── ostream_sink.h │ │ │ │ ├── stdout_color_sinks-inl.h │ │ │ │ ├── base_sink.h │ │ │ │ ├── callback_sink.h │ │ │ │ ├── stdout_color_sinks.h │ │ │ │ └── base_sink-inl.h │ │ │ │ ├── cfg │ │ │ │ ├── helpers.h │ │ │ │ ├── env.h │ │ │ │ └── argv.h │ │ │ │ └── mdc.h │ │ ├── .git-blame-ignore-revs │ │ ├── scripts │ │ │ ├── ci_setup_clang.sh │ │ │ ├── extract_version.py │ │ │ └── format.sh │ │ ├── src │ │ │ ├── cfg.cpp │ │ │ ├── async.cpp │ │ │ ├── file_sinks.cpp │ │ │ ├── spdlog.cpp │ │ │ └── bundled_fmtlib_format.cpp │ │ ├── tests │ │ │ ├── main.cpp │ │ │ ├── utils.h │ │ │ ├── test_systemd.cpp │ │ │ ├── includes.h │ │ │ ├── test_circular_q.cpp │ │ │ ├── test_custom_callbacks.cpp │ │ │ ├── test_time_point.cpp │ │ │ ├── test_stopwatch.cpp │ │ │ ├── test_macros.cpp │ │ │ └── test_sink.h │ │ ├── cmake │ │ │ ├── spdlog.pc.in │ │ │ ├── spdlogConfig.cmake.in │ │ │ ├── version.rc.in │ │ │ └── ide.cmake │ │ ├── .clang-format │ │ ├── bench │ │ │ ├── utils.h │ │ │ └── CMakeLists.txt │ │ ├── .github │ │ │ └── workflows │ │ │ │ └── macos.yml │ │ ├── INSTALL │ │ ├── example │ │ │ └── CMakeLists.txt │ │ ├── LICENSE │ │ ├── .gitignore │ │ └── .clang-tidy │ ├── mimalloc.lib │ ├── mimalloc-dev │ │ ├── doc │ │ │ ├── ds-logo.jpg │ │ │ ├── ds-logo.png │ │ │ ├── spades-logo.png │ │ │ ├── mimalloc-logo.png │ │ │ ├── mimalloc-logo-100.png │ │ │ └── mimalloc-doxygen.css │ │ ├── src │ │ │ ├── prim │ │ │ │ ├── windows │ │ │ │ │ ├── etw.man │ │ │ │ │ └── readme.md │ │ │ │ ├── readme.md │ │ │ │ └── osx │ │ │ │ │ └── prim.c │ │ │ └── static.c │ │ ├── .gitignore │ │ ├── contrib │ │ │ ├── docker │ │ │ │ ├── readme.md │ │ │ │ ├── alpine │ │ │ │ │ └── Dockerfile │ │ │ │ ├── manylinux-x64 │ │ │ │ │ └── Dockerfile │ │ │ │ └── alpine-arm32v7 │ │ │ │ │ └── Dockerfile │ │ │ └── vcpkg │ │ │ │ ├── usage │ │ │ │ ├── vcpkg.json │ │ │ │ ├── vcpkg-cmake-wrapper.cmake │ │ │ │ └── readme.md │ │ ├── .gitattributes │ │ ├── test │ │ │ ├── main-override-dep.h │ │ │ ├── main-override-dep.cpp │ │ │ ├── main-override.c │ │ │ ├── readme.md │ │ │ ├── main.c │ │ │ └── testhelper.h │ │ ├── mimalloc.pc.in │ │ ├── cmake │ │ │ ├── mimalloc-config-version.cmake │ │ │ ├── mimalloc-config.cmake │ │ │ └── JoinPaths.cmake │ │ └── LICENSE │ └── nlohmann │ │ ├── include │ │ └── nlohmann │ │ │ └── detail │ │ │ ├── meta │ │ │ ├── call_std │ │ │ │ ├── end.hpp │ │ │ │ └── begin.hpp │ │ │ ├── identity_tag.hpp │ │ │ ├── void_t.hpp │ │ │ └── std_fs.hpp │ │ │ ├── string_utils.hpp │ │ │ ├── input │ │ │ └── position_t.hpp │ │ │ ├── iterators │ │ │ ├── internal_iterator.hpp │ │ │ └── iterator_traits.hpp │ │ │ ├── json_custom_base_class.hpp │ │ │ └── macro_unscope.hpp │ │ ├── meson.build │ │ └── LICENSE.MIT ├── pch.cpp ├── Build │ ├── StormBreaker.asi │ └── StormBreaker(PathCapUnlock).asi ├── framework.h ├── Game │ └── PathCapUnlock.h └── pch.h ├── .vscode └── settings.json ├── LICENSE.txt └── StormBreaker.sln /StormMemPoolFix/Dependencies/Detours/samples/cping/cping.dat: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=false 2 | -------------------------------------------------------------------------------- /StormMemPoolFix/pch.cpp: -------------------------------------------------------------------------------- 1 | // pch.cpp: 与预编译标头对应的源文件 2 | 3 | #include "pch.h" 4 | 5 | // 当使用预编译的头时,需要使用此源文件,编译才能成功。 6 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/src/disolarm.cpp: -------------------------------------------------------------------------------- 1 | #define DETOURS_ARM_OFFLINE_LIBRARY 2 | #include "disasm.cpp" 3 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/src/disolarm64.cpp: -------------------------------------------------------------------------------- 1 | #define DETOURS_ARM64_OFFLINE_LIBRARY 2 | #include "disasm.cpp" 3 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/src/disolia64.cpp: -------------------------------------------------------------------------------- 1 | #define DETOURS_IA64_OFFLINE_LIBRARY 2 | #include "disasm.cpp" 3 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/src/disolx64.cpp: -------------------------------------------------------------------------------- 1 | #define DETOURS_X64_OFFLINE_LIBRARY 2 | #include "disasm.cpp" 3 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/src/disolx86.cpp: -------------------------------------------------------------------------------- 1 | #define DETOURS_X86_OFFLINE_LIBRARY 2 | #include "disasm.cpp" 3 | -------------------------------------------------------------------------------- /StormMemPoolFix/Build/StormBreaker.asi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Build/StormBreaker.asi -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/mimalloc.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Build/StormBreaker(PathCapUnlock).asi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Build/StormBreaker(PathCapUnlock).asi -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/logos/spdlog.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/spdlog/logos/spdlog.png -------------------------------------------------------------------------------- /StormMemPoolFix/framework.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的内容 4 | // Windows 头文件 5 | #include 6 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/comeasy.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/comeasy.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/commem.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/commem.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/cping.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/cping.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/dbghelp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/dbghelp.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/disas.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/disas.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/dtest.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/dtest.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/dumpe.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/dumpe.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/dumpi.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/dumpi.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/echonul.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/echonul.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/echonul.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/echonul.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/echonul.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/echonul.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/einst.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/einst.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/excep.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/excep.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/member.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/member.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/region.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/region.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/setdll.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/setdll.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/sleep5.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/sleep5.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/slept32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/slept32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/slept32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/slept32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/slept32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/slept32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/sltest.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/sltest.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/sltestp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/sltestp.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/syelogd.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/syelogd.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/symtest.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/symtest.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/withdll.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/withdll.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/lib.X86/detours.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/lib.X86/detours.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/lib.X86/syelog.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/lib.X86/syelog.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/dslept32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/dslept32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/dslept32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/dslept32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/dslept32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/dslept32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/dtarge32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/dtarge32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/dtarge32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/dtarge32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/dtarge32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/dtarge32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/echofx32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/echofx32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/echofx32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/echofx32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/echofx32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/echofx32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/edll1x32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/edll1x32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/edll1x32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/edll1x32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/edll1x32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/edll1x32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/edll2x32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/edll2x32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/edll2x32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/edll2x32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/edll2x32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/edll2x32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/edll3x32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/edll3x32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/edll3x32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/edll3x32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/edll3x32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/edll3x32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/extend32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/extend32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/extend32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/extend32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/extend32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/extend32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/findfunc.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/findfunc.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/simple32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/simple32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/simple32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/simple32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/simple32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/simple32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/sleepbed.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/sleepbed.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/sleepnew.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/sleepnew.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/sleepold.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/sleepold.exe -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/target32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/target32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/target32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/target32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/target32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/target32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/wrotei32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/wrotei32.dll -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/wrotei32.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/wrotei32.exp -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/bin.X86/wrotei32.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/bin.X86/wrotei32.lib -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/doc/ds-logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/mimalloc-dev/doc/ds-logo.jpg -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/doc/ds-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/mimalloc-dev/doc/ds-logo.png -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/doc/spades-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/mimalloc-dev/doc/spades-logo.png -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fmt/bundled/locale.h: -------------------------------------------------------------------------------- 1 | #include "xchar.h" 2 | #warning fmt/locale.h is deprecated, include fmt/format.h or fmt/xchar.h instead 3 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/doc/mimalloc-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/mimalloc-dev/doc/mimalloc-logo.png -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "cmake.sourceDirectory": "D:/Mycode/Source/Repos/StormBreaker/StormMemPoolFix", 3 | "files.associations": { 4 | "shared_mutex": "cpp" 5 | } 6 | } -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/src/prim/windows/etw.man: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/mimalloc-dev/src/prim/windows/etw.man -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/echo/obj.X86/echofx.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/samples/echo/obj.X86/echofx.res -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/slept/obj.X86/slept.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/samples/slept/obj.X86/slept.res -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/doc/mimalloc-logo-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/mimalloc-dev/doc/mimalloc-logo-100.png -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/comeasy/obj.X86/wrotei.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/samples/comeasy/obj.X86/wrotei.res -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/dtest/obj.X86/dtarge.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/samples/dtest/obj.X86/dtarge.res -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/simple/obj.X86/simple.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/samples/simple/obj.X86/simple.res -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/slept/obj.X86/dslept.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/samples/slept/obj.X86/dslept.res -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/findfunc/obj.X86/extend.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/samples/findfunc/obj.X86/extend.res -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/findfunc/obj.X86/target.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/samples/findfunc/obj.X86/target.res -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/traceapi/obj.X86/trcapi.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CallDisaster/StormBreaker/HEAD/StormMemPoolFix/Dependencies/Detours/samples/traceapi/obj.X86/trcapi.res -------------------------------------------------------------------------------- /StormMemPoolFix/Game/PathCapUnlock.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #include "pch.h" 3 | #include 4 | 5 | // 写入/还原寻路容量(单位寻路上限“解锁”) 6 | bool InstallPathCapUnlock(float newValue = 2.0f); // 默认 2.0 7 | void UninstallPathCapUnlock(); 8 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | ide/vs20??/*.db 3 | ide/vs20??/*.opendb 4 | ide/vs20??/*.user 5 | ide/vs20??/.vs 6 | ide/vs20??/VTune* 7 | out/ 8 | docs/ 9 | *.zip 10 | *.tar 11 | *.gz 12 | .vscode 13 | .DS_STore 14 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/contrib/docker/readme.md: -------------------------------------------------------------------------------- 1 | Various example docker files used for testing. 2 | 3 | Usage: 4 | 5 | ``` 6 | > cd 7 | > docker build -t -mimalloc . 8 | > docker run -it -mimalloc 9 | >> make test 10 | ``` 11 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fmt/bundled/core.h: -------------------------------------------------------------------------------- 1 | // This file is only provided for compatibility and may be removed in future 2 | // versions. Use fmt/base.h if you don't need fmt::format and fmt/format.h 3 | // otherwise. 4 | 5 | #include "format.h" 6 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/.git-blame-ignore-revs: -------------------------------------------------------------------------------- 1 | # clang-format 2 | 1a0bfc7a89f2d58e22605a4dc7e18a9a555b65aa 3 | 95c226e9c92928e20ccdac0d060e7241859e282b 4 | 9d52261185b5f2c454c381d626ec5c84d7b195f4 5 | 4b2a8219d5d1b40062d030441adde7d1fb0d4f84 6 | 0a53eafe18d983c7c8ba4cadd02d0cc7f7308f28 7 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/windows_include.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifndef NOMINMAX 4 | #define NOMINMAX // prevent windows redefining min/max 5 | #endif 6 | 7 | #ifndef WIN32_LEAN_AND_MEAN 8 | #define WIN32_LEAN_AND_MEAN 9 | #endif 10 | 11 | #include 12 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/.gitattributes: -------------------------------------------------------------------------------- 1 | # default behavior is to always use unix style line endings 2 | * text eol=lf 3 | *.png binary 4 | *.pdn binary 5 | *.jpg binary 6 | *.sln binary 7 | *.suo binary 8 | *.vcproj binary 9 | *.patch binary 10 | *.dll binary 11 | *.lib binary 12 | *.exe binary 13 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/echo/echonul.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // 4 | #include 5 | 6 | int WINAPI Echo(PCSTR pszMsg) 7 | { 8 | int sum = 0; 9 | while (*pszMsg) { 10 | sum = sum + *pszMsg++; 11 | } 12 | return sum; 13 | } 14 | 15 | int main() 16 | { 17 | return 0; 18 | } 19 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/scripts/ci_setup_clang.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -ex 4 | 5 | VERSION=$1 6 | 7 | apt-get update 8 | apt-get install -y libc++-${VERSION}-dev libc++abi-${VERSION}-dev 9 | 10 | if [[ "${VERSION}" -ge 12 ]]; then 11 | apt-get install -y --no-install-recommends libunwind-${VERSION}-dev 12 | fi 13 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/src/cfg.cpp: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #ifndef SPDLOG_COMPILED_LIB 5 | #error Please define SPDLOG_COMPILED_LIB to compile this file. 6 | #endif 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/tests/main.cpp: -------------------------------------------------------------------------------- 1 | #if defined(__GNUC__) && __GNUC__ == 12 2 | #pragma GCC diagnostic push 3 | #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" // Workaround for GCC 12 4 | #endif 5 | 6 | #include 7 | 8 | #if defined(__GNUC__) && __GNUC__ == 12 9 | #pragma GCC diagnostic pop 10 | #endif 11 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/test/main-override-dep.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | // Issue #981: test overriding allocation in a DLL that is compiled independent of mimalloc. 3 | // This is imported by the `mimalloc-test-override` project. 4 | 5 | #include 6 | 7 | class TestAllocInDll 8 | { 9 | public: 10 | __declspec(dllexport) std::string GetString(); 11 | }; 12 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/disas/unk.cpp: -------------------------------------------------------------------------------- 1 | ///////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (x86.asm of disas.exe) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | static int value = 0; 11 | 12 | extern "C" void TestCodes() 13 | { 14 | value++; 15 | } 16 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/mimalloc.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | libdir=@mi_pc_libdir@ 3 | includedir=@mi_pc_includedir@ 4 | 5 | Name: @PROJECT_NAME@ 6 | Description: A compact general purpose allocator with excellent performance 7 | Version: @PACKAGE_VERSION@ 8 | URL: https://github.com/microsoft/mimalloc/ 9 | Libs: -L${libdir} -l@mi_libname@ 10 | Libs.private: @mi_pc_libraries@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fwd.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | namespace spdlog { 7 | class logger; 8 | class formatter; 9 | 10 | namespace sinks { 11 | class sink; 12 | } 13 | 14 | namespace level { 15 | enum level_enum : int; 16 | } 17 | 18 | } // namespace spdlog 19 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/cmake/spdlog.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=${prefix} 3 | includedir=@PKG_CONFIG_INCLUDEDIR@ 4 | libdir=@PKG_CONFIG_LIBDIR@ 5 | 6 | Name: lib@PROJECT_NAME@ 7 | Description: Fast C++ logging library. 8 | URL: https://github.com/gabime/@PROJECT_NAME@ 9 | Version: @SPDLOG_VERSION@ 10 | CFlags: -I${includedir} @PKG_CONFIG_DEFINES@ 11 | Libs: -L${libdir} -lspdlog -pthread 12 | Requires: @PKG_CONFIG_REQUIRES@ 13 | 14 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/findfunc/target.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detour Test Program (target.h of target.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | DWORD WINAPI Target(DWORD dwCount); 11 | 12 | // 13 | ///////////////////////////////////////////////////////////////// End of File. 14 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/src/async.cpp: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #ifndef SPDLOG_COMPILED_LIB 5 | #error Please define SPDLOG_COMPILED_LIB to compile this file. 6 | #endif 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/version.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #define SPDLOG_VER_MAJOR 1 7 | #define SPDLOG_VER_MINOR 15 8 | #define SPDLOG_VER_PATCH 0 9 | 10 | #define SPDLOG_TO_VERSION(major, minor, patch) (major * 10000 + minor * 100 + patch) 11 | #define SPDLOG_VERSION SPDLOG_TO_VERSION(SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH) 12 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/test/main-override-dep.cpp: -------------------------------------------------------------------------------- 1 | // Issue #981: test overriding allocation in a DLL that is compiled independent of mimalloc. 2 | // This is imported by the `mimalloc-test-override` project. 3 | #include 4 | #include "main-override-dep.h" 5 | 6 | std::string TestAllocInDll::GetString() 7 | { 8 | char* test = new char[128]; 9 | memset(test, 0, 128); 10 | const char* t = "test"; 11 | memcpy(test, t, 4); 12 | std::string r = test; 13 | delete[] test; 14 | return r; 15 | } -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/src/prim/readme.md: -------------------------------------------------------------------------------- 1 | ## Portability Primitives 2 | 3 | This is the portability layer where all primitives needed from the OS are defined. 4 | 5 | - `include/mimalloc/prim.h`: primitive portability API definition. 6 | - `prim.c`: Selects one of `unix/prim.c`, `wasi/prim.c`, or `windows/prim.c` depending on the host platform 7 | (and on macOS, `osx/prim.c` defers to `unix/prim.c`). 8 | 9 | Note: still work in progress, there may still be places in the sources that still depend on OS ifdef's. -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | Language: Cpp 3 | BasedOnStyle: Google 4 | AccessModifierOffset: -4 5 | Standard: c++17 6 | IndentWidth: 4 7 | TabWidth: 4 8 | UseTab: Never 9 | ColumnLimit: 100 10 | AlignAfterOpenBracket: Align 11 | BinPackParameters: false 12 | AlignEscapedNewlines: Left 13 | AlwaysBreakTemplateDeclarations: Yes 14 | PackConstructorInitializers: Never 15 | BreakConstructorInitializersBeforeComma: false 16 | IndentPPDirectives: BeforeHash 17 | SortIncludes: Never 18 | ... 19 | 20 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/tests/utils.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | #include 5 | 6 | std::size_t count_files(const std::string &folder); 7 | 8 | void prepare_logdir(); 9 | 10 | std::string file_contents(const std::string &filename); 11 | 12 | std::size_t count_lines(const std::string &filename); 13 | 14 | void require_message_count(const std::string &filename, const std::size_t messages); 15 | 16 | std::size_t get_filesize(const std::string &filename); 17 | 18 | bool ends_with(std::string const &value, std::string const &ending); -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/src/prim/osx/prim.c: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | Copyright (c) 2018-2023, Microsoft Research, Daan Leijen 3 | This is free software; you can redistribute it and/or modify it under the 4 | terms of the MIT license. A copy of the license can be found in the file 5 | "LICENSE" at the root of this distribution. 6 | -----------------------------------------------------------------------------*/ 7 | 8 | // We use the unix/prim.c with the mmap API on macOSX 9 | #include "../unix/prim.c" 10 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/formatter.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | namespace spdlog { 10 | 11 | class formatter { 12 | public: 13 | virtual ~formatter() = default; 14 | virtual void format(const details::log_msg &msg, memory_buf_t &dest) = 0; 15 | virtual std::unique_ptr clone() const = 0; 16 | }; 17 | } // namespace spdlog 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/contrib/docker/alpine/Dockerfile: -------------------------------------------------------------------------------- 1 | # alpine image 2 | FROM alpine 3 | 4 | # Install tools 5 | RUN apk add build-base make cmake 6 | RUN apk add git 7 | RUN apk add vim 8 | 9 | RUN mkdir -p /home/dev 10 | WORKDIR /home/dev 11 | 12 | # Get mimalloc 13 | RUN git clone https://github.com/microsoft/mimalloc -b dev2 14 | RUN mkdir -p mimalloc/out/release 15 | RUN mkdir -p mimalloc/out/debug 16 | 17 | # Build mimalloc debug 18 | WORKDIR /home/dev/mimalloc/out/debug 19 | RUN cmake ../.. -DMI_DEBUG_FULL=ON 20 | RUN make -j 21 | RUN make test 22 | 23 | CMD ["/bin/sh"] -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/meta/call_std/end.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | #include 12 | 13 | NLOHMANN_JSON_NAMESPACE_BEGIN 14 | 15 | NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end); 16 | 17 | NLOHMANN_JSON_NAMESPACE_END 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/meta/call_std/begin.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | #include 12 | 13 | NLOHMANN_JSON_NAMESPACE_BEGIN 14 | 15 | NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin); 16 | 17 | NLOHMANN_JSON_NAMESPACE_END 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/echo/main.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // 4 | #include 5 | 6 | int WINAPI Echo(PCSTR pszMsg); 7 | 8 | extern "C" int __stdcall mainCRTStartup(HINSTANCE hInstance, 9 | HINSTANCE hPrevInstance, 10 | LPSTR lpCmdLine, 11 | int nCmdShow 12 | ) 13 | { 14 | (void)hInstance; 15 | (void)hPrevInstance; 16 | (void)lpCmdLine; 17 | (void)nCmdShow; 18 | 19 | Echo("Hello World"); 20 | Echo("Goodbye World"); 21 | 22 | return 0x99; 23 | } 24 | 25 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/scripts/extract_version.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import os 4 | import re 5 | 6 | base_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) 7 | config_h = os.path.join(base_path, 'include', 'spdlog', 'version.h') 8 | data = {'MAJOR': 0, 'MINOR': 0, 'PATCH': 0} 9 | reg = re.compile(r'^\s*#define\s+SPDLOG_VER_([A-Z]+)\s+([0-9]+).*$') 10 | 11 | with open(config_h, 'r') as fp: 12 | for l in fp: 13 | m = reg.match(l) 14 | if m: 15 | data[m.group(1)] = int(m.group(2)) 16 | 17 | print(f"{data['MAJOR']}.{data['MINOR']}.{data['PATCH']}") 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/pch.h: -------------------------------------------------------------------------------- 1 | // pch.h: 这是预编译标头文件。 2 | // 下方列出的文件仅编译一次,提高了将来生成的生成性能。 3 | // 这还将影响 IntelliSense 性能,包括代码完成和许多代码浏览功能。 4 | // 但是,如果此处列出的文件中的任何一个在生成之间有更新,它们全部都将被重新编译。 5 | // 请勿在此处添加要频繁更新的文件,这将使得性能优势无效。 6 | 7 | #ifndef PCH_H 8 | #define PCH_H 9 | 10 | // 添加要在此处预编译的标头 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #endif //PCH_H 18 | 19 | bool InitializeStormBreaker(); 20 | void ShutdownStormBreaker(); 21 | bool InstallStormHooks(); 22 | void UninstallStormHooks(); 23 | bool StartMemoryMonitoring(); 24 | void StopMemoryMonitoring(); -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/opengl/testogl.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // File: testogl.cpp 4 | // Module: testogl.exe (oglsimple.dll) 5 | // 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | int __cdecl main() 12 | { 13 | printf("testogl.exe: Starting\n"); 14 | fflush(stdout); 15 | 16 | glFinish(); 17 | 18 | printf("testogl.exe: done\n"); 19 | fflush(stdout); 20 | 21 | return 0; 22 | } 23 | // 24 | ///////////////////////////////////////////////////////////////// End of File. 25 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/talloc/tdll1x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tdll1x.cpp of talloc.exe/tdll1x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | //////////////////////////////////////////////////////////////////// DLL Stuff 11 | // 12 | __declspec(dllexport) unsigned long __stdcall Dll1Function(unsigned long Value) 13 | { 14 | return Value + 1; 15 | } 16 | 17 | ///////////////////////////////////////////////////////////////// End of File. 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/talloc/tdll2x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tdll2x.cpp of talloc.exe/tdll2x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | //////////////////////////////////////////////////////////////////// DLL Stuff 11 | // 12 | __declspec(dllexport) unsigned long __stdcall Dll2Function(unsigned long Value) 13 | { 14 | return Value + 1; 15 | } 16 | 17 | ///////////////////////////////////////////////////////////////// End of File. 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/talloc/tdll3x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tdll3x.cpp of talloc.exe/tdll3x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | //////////////////////////////////////////////////////////////////// DLL Stuff 11 | // 12 | __declspec(dllexport) unsigned long __stdcall Dll3Function(unsigned long Value) 13 | { 14 | return Value + 1; 15 | } 16 | 17 | ///////////////////////////////////////////////////////////////// End of File. 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/talloc/tdll4x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tdll4x.cpp of talloc.exe/tdll4x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | //////////////////////////////////////////////////////////////////// DLL Stuff 11 | // 12 | __declspec(dllexport) unsigned long __stdcall Dll4Function(unsigned long Value) 13 | { 14 | return Value + 1; 15 | } 16 | 17 | ///////////////////////////////////////////////////////////////// End of File. 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/talloc/tdll5x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tdll5x.cpp of talloc.exe/tdll5x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | //////////////////////////////////////////////////////////////////// DLL Stuff 11 | // 12 | __declspec(dllexport) unsigned long __stdcall Dll5Function(unsigned long Value) 13 | { 14 | return Value + 1; 15 | } 16 | 17 | ///////////////////////////////////////////////////////////////// End of File. 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/talloc/tdll6x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tdll6x.cpp of talloc.exe/tdll6x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | //////////////////////////////////////////////////////////////////// DLL Stuff 11 | // 12 | __declspec(dllexport) unsigned long __stdcall Dll6Function(unsigned long Value) 13 | { 14 | return Value + 1; 15 | } 16 | 17 | ///////////////////////////////////////////////////////////////// End of File. 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/talloc/tdll7x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tdll7x.cpp of talloc.exe/tdll7x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | //////////////////////////////////////////////////////////////////// DLL Stuff 11 | // 12 | __declspec(dllexport) unsigned long __stdcall Dll7Function(unsigned long Value) 13 | { 14 | return Value + 1; 15 | } 16 | 17 | ///////////////////////////////////////////////////////////////// End of File. 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/talloc/tdll8x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tdll8x.cpp of talloc.exe/tdll8x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | //////////////////////////////////////////////////////////////////// DLL Stuff 11 | // 12 | __declspec(dllexport) unsigned long __stdcall Dll8Function(unsigned long Value) 13 | { 14 | return Value + 1; 15 | } 16 | 17 | ///////////////////////////////////////////////////////////////// End of File. 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/talloc/tdll9x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tdll9x.cpp of talloc.exe/tdll9x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | //////////////////////////////////////////////////////////////////// DLL Stuff 11 | // 12 | __declspec(dllexport) unsigned long __stdcall Dll9Function(unsigned long Value) 13 | { 14 | return Value + 1; 15 | } 16 | 17 | ///////////////////////////////////////////////////////////////// End of File. 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/src/prim/windows/readme.md: -------------------------------------------------------------------------------- 1 | ## Primitives: 2 | 3 | - `prim.c` contains Windows primitives for OS allocation. 4 | 5 | ## Event Tracing for Windows (ETW) 6 | 7 | - `etw.h` is generated from `etw.man` which contains the manifest for mimalloc events. 8 | (100 is an allocation, 101 is for a free) 9 | 10 | - `etw-mimalloc.wprp` is a profile for the Windows Performance Recorder (WPR). 11 | In an admin prompt, you can use: 12 | ``` 13 | > wpr -start src\prim\windows\etw-mimalloc.wprp -filemode 14 | > 15 | > wpr -stop test.etl 16 | ``` 17 | and then open `test.etl` in the Windows Performance Analyzer (WPA). -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/cmake/spdlogConfig.cmake.in: -------------------------------------------------------------------------------- 1 | # Copyright(c) 2019 spdlog authors 2 | # Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | @PACKAGE_INIT@ 5 | 6 | find_package(Threads REQUIRED) 7 | 8 | set(SPDLOG_FMT_EXTERNAL @SPDLOG_FMT_EXTERNAL@) 9 | set(SPDLOG_FMT_EXTERNAL_HO @SPDLOG_FMT_EXTERNAL_HO@) 10 | set(config_targets_file @config_targets_file@) 11 | 12 | if(SPDLOG_FMT_EXTERNAL OR SPDLOG_FMT_EXTERNAL_HO) 13 | include(CMakeFindDependencyMacro) 14 | find_dependency(fmt CONFIG) 15 | endif() 16 | 17 | 18 | include("${CMAKE_CURRENT_LIST_DIR}/${config_targets_file}") 19 | 20 | check_required_components(spdlog) 21 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/dtest/dtarge.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for dtarge.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "dtarge" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "dtarge" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Test Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/simple/simple.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for simple.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "simple" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "simple" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Test Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/slept/slept.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detour Test Program (slept.h of slept.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | DWORD WINAPI UntimedSleepEx(DWORD dwMilliseconds, BOOL bAlertable); 11 | DWORD WINAPI TimedSleepEx(DWORD dwMilliseconds, BOOL bAlertable); 12 | DWORD WINAPI GetSleptTicks(VOID); 13 | DWORD WINAPI TestTicks(VOID); 14 | DWORD WINAPI TestTicksEx(DWORD Add); 15 | 16 | // 17 | ///////////////////////////////////////////////////////////////// End of File. 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/tryman/tryman.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tryman.cpp of tryman.exe) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include 11 | 12 | extern int WINAPI Test3264(int arg); 13 | 14 | int __cdecl main(int argc, char ** argv) 15 | { 16 | (void)argv; 17 | int ret = 0; 18 | 19 | ret = Test3264(argc); 20 | return ret == 0 ? ret : 0; 21 | } 22 | // 23 | ///////////////////////////////////////////////////////////////// End of File. 24 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/comeasy/wrotei.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for wrotei.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "wrotei" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "wrotei" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours COM Easy Sample" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/findfunc/target.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for target.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "target" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "target" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Test Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/slept/slept.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for sleep.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "sleep" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "sleep" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Sleep Test Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/contrib/docker/manylinux-x64/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM quay.io/pypa/manylinux2014_x86_64 2 | 3 | # Install tools 4 | RUN yum install -y openssl-devel 5 | RUN yum install -y gcc gcc-c++ kernel-devel make 6 | RUN yum install -y git cmake 7 | RUN yum install -y vim 8 | 9 | RUN mkdir -p /home/dev 10 | WORKDIR /home/dev 11 | 12 | # Get mimalloc 13 | RUN git clone https://github.com/microsoft/mimalloc -b dev2 14 | RUN mkdir -p mimalloc/out/release 15 | RUN mkdir -p mimalloc/out/debug 16 | 17 | # Build mimalloc debug 18 | WORKDIR /home/dev/mimalloc/out/debug 19 | RUN cmake ../.. -DMI_DEBUG_FULL=ON 20 | RUN make -j 21 | RUN make test 22 | 23 | CMD ["/bin/sh"] -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/opengl/ogldet.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for ogldet.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "ogldet" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "ogldet" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Open GL Test Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/tracemem/trcmem.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for trcmem.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "trcmem" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "trcmem" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Memory Trace Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/traceser/trcser.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for trcser.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "trcser" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "trcsrc" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Serial Trace Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/tracessl/trcssl.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for trcssl.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "trcssl" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "trcsll" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours SSL Trace Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/tracetcp/trctcp.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for trctcp.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "trctcp" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "trctcp" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours TCP Trace Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/tryman/tstman.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for tstman.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "tstman" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "tstman" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours 32/64-bit Test Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/echo/echofx.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for echofx.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "echofx" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "echofx" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Echo Interception Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/slept/dslept.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for dslept.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "dslept" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "dslept" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Sleep Interception Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/traceapi/trcapi.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for trcapi.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "trcapi" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "trcapi" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Win32 API Tracing Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/tracebld/trcbld.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for trcbld.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "trcbld" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "trcbld" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Build Tracing Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/tracereg/trcreg.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for trcreg.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "trcreg" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "trcreg" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Registry Trace Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/meta/identity_tag.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | #include 12 | 13 | NLOHMANN_JSON_NAMESPACE_BEGIN 14 | namespace detail 15 | { 16 | 17 | // dispatching helper struct 18 | template struct identity_tag {}; 19 | 20 | } // namespace detail 21 | NLOHMANN_JSON_NAMESPACE_END 22 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/tests/test_systemd.cpp: -------------------------------------------------------------------------------- 1 | #include "includes.h" 2 | #include "spdlog/sinks/systemd_sink.h" 3 | 4 | TEST_CASE("systemd", "[all]") { 5 | auto systemd_sink = std::make_shared(); 6 | spdlog::logger logger("spdlog_systemd_test", systemd_sink); 7 | logger.set_level(spdlog::level::trace); 8 | logger.trace("test spdlog trace"); 9 | logger.debug("test spdlog debug"); 10 | SPDLOG_LOGGER_INFO((&logger), "test spdlog info"); 11 | SPDLOG_LOGGER_WARN((&logger), "test spdlog warn"); 12 | SPDLOG_LOGGER_ERROR((&logger), "test spdlog error"); 13 | SPDLOG_LOGGER_CRITICAL((&logger), "test spdlog critical"); 14 | } 15 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/tracelnk/trclnk.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for trclnk.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "trclnk" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "trclnk" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Dynamic Linking Trace Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/findfunc/extend.rc: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Version information for extend.rc. 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include "detver.h" 11 | 12 | #define VER_INTERNALNAME_STR "extend" DETOURS_STRINGIFY(DETOURS_BITS) 13 | #define VER_ORIGINALFILENAME_STR "extend" DETOURS_STRINGIFY(DETOURS_BITS) ".dll" 14 | #define VER_FILEDESCRIPTION_STR "Detours Dyanmic Interception Test Module" 15 | #define VER_COMPANYNAME_STR "Microsoft Corporation" 16 | 17 | #include "common.ver" 18 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fmt/xchar.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright(c) 2016 Gabi Melman. 3 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 4 | // 5 | 6 | #pragma once 7 | // 8 | // include bundled or external copy of fmtlib's xchar support 9 | // 10 | #include 11 | 12 | #if !defined(SPDLOG_USE_STD_FORMAT) 13 | #if !defined(SPDLOG_FMT_EXTERNAL) 14 | #ifdef SPDLOG_HEADER_ONLY 15 | #ifndef FMT_HEADER_ONLY 16 | #define FMT_HEADER_ONLY 17 | #endif 18 | #endif 19 | #include 20 | #else 21 | #include 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fmt/chrono.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright(c) 2016 Gabi Melman. 3 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 4 | // 5 | 6 | #pragma once 7 | // 8 | // include bundled or external copy of fmtlib's chrono support 9 | // 10 | #include 11 | 12 | #if !defined(SPDLOG_USE_STD_FORMAT) 13 | #if !defined(SPDLOG_FMT_EXTERNAL) 14 | #ifdef SPDLOG_HEADER_ONLY 15 | #ifndef FMT_HEADER_ONLY 16 | #define FMT_HEADER_ONLY 17 | #endif 18 | #endif 19 | #include 20 | #else 21 | #include 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fmt/ostr.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright(c) 2016 Gabi Melman. 3 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 4 | // 5 | 6 | #pragma once 7 | // 8 | // include bundled or external copy of fmtlib's ostream support 9 | // 10 | #include 11 | 12 | #if !defined(SPDLOG_USE_STD_FORMAT) 13 | #if !defined(SPDLOG_FMT_EXTERNAL) 14 | #ifdef SPDLOG_HEADER_ONLY 15 | #ifndef FMT_HEADER_ONLY 16 | #define FMT_HEADER_ONLY 17 | #endif 18 | #endif 19 | #include 20 | #else 21 | #include 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fmt/ranges.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright(c) 2016 Gabi Melman. 3 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 4 | // 5 | 6 | #pragma once 7 | // 8 | // include bundled or external copy of fmtlib's ranges support 9 | // 10 | #include 11 | 12 | #if !defined(SPDLOG_USE_STD_FORMAT) 13 | #if !defined(SPDLOG_FMT_EXTERNAL) 14 | #ifdef SPDLOG_HEADER_ONLY 15 | #ifndef FMT_HEADER_ONLY 16 | #define FMT_HEADER_ONLY 17 | #endif 18 | #endif 19 | #include 20 | #else 21 | #include 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fmt/compile.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright(c) 2016 Gabi Melman. 3 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 4 | // 5 | 6 | #pragma once 7 | // 8 | // include bundled or external copy of fmtlib's compile-time support 9 | // 10 | #include 11 | 12 | #if !defined(SPDLOG_USE_STD_FORMAT) 13 | #if !defined(SPDLOG_FMT_EXTERNAL) 14 | #ifdef SPDLOG_HEADER_ONLY 15 | #ifndef FMT_HEADER_ONLY 16 | #define FMT_HEADER_ONLY 17 | #endif 18 | #endif 19 | #include 20 | #else 21 | #include 22 | #endif 23 | #endif 24 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/excep/firstexc.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (firstexc.h of firstexc.exe) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #pragma once 11 | #ifndef _FIRSTEXC_H_ 12 | #define _FIRSTEXC_H_ 13 | 14 | /////////////////////////////////////////////// First Chance Exception Filter. 15 | // 16 | LPTOP_LEVEL_EXCEPTION_FILTER WINAPI 17 | DetourFirstChanceExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelFilter); 18 | 19 | #endif // _FIRSTEXC_H_ 20 | // 21 | //////////////////////////////////////////////////////////////// End of File. 22 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/scripts/format.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd "$(dirname "$0")"/.. 4 | pwd 5 | find_sources="find include src tests example bench -not ( -path include/spdlog/fmt/bundled -prune ) -type f -name *\.h -o -name *\.cpp" 6 | echo -n "Running dos2unix " 7 | $find_sources | xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'" 8 | echo 9 | echo -n "Running clang-format " 10 | 11 | $find_sources | xargs -I {} sh -c "clang-format -i {}; echo -n '.'" 12 | 13 | echo 14 | echo -n "Running cmake-format " 15 | find . -type f -name "CMakeLists.txt" -o -name "*\.cmake"|grep -v bundled|grep -v build|xargs -I {} sh -c "cmake-format --line-width 120 --tab-size 4 --max-subgroups-hwrap 4 -i {}; echo -n '.'" 16 | echo 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/meta/void_t.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | #include 12 | 13 | NLOHMANN_JSON_NAMESPACE_BEGIN 14 | namespace detail 15 | { 16 | 17 | template struct make_void 18 | { 19 | using type = void; 20 | }; 21 | template using void_t = typename make_void::type; 22 | 23 | } // namespace detail 24 | NLOHMANN_JSON_NAMESPACE_END 25 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/meson.build: -------------------------------------------------------------------------------- 1 | project('nlohmann_json', 2 | 'cpp', 3 | version : '3.12.0', 4 | license : 'MIT', 5 | ) 6 | 7 | nlohmann_json_dep = declare_dependency( 8 | include_directories: include_directories('single_include') 9 | ) 10 | 11 | nlohmann_json_multiple_headers = declare_dependency( 12 | include_directories: include_directories('include') 13 | ) 14 | 15 | if not meson.is_subproject() 16 | install_headers('single_include/nlohmann/json.hpp', subdir: 'nlohmann') 17 | install_headers('single_include/nlohmann/json_fwd.hpp', subdir: 'nlohmann') 18 | 19 | pkgc = import('pkgconfig') 20 | pkgc.generate(name: 'nlohmann_json', 21 | version: meson.project_version(), 22 | description: 'JSON for Modern C++' 23 | ) 24 | endif 25 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/console_globals.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | namespace spdlog { 10 | namespace details { 11 | 12 | struct console_mutex { 13 | using mutex_t = std::mutex; 14 | static mutex_t &mutex() { 15 | static mutex_t s_mutex; 16 | return s_mutex; 17 | } 18 | }; 19 | 20 | struct console_nullmutex { 21 | using mutex_t = null_mutex; 22 | static mutex_t &mutex() { 23 | static mutex_t s_mutex; 24 | return s_mutex; 25 | } 26 | }; 27 | } // namespace details 28 | } // namespace spdlog 29 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fmt/std.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright(c) 2016 Gabi Melman. 3 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 4 | // 5 | 6 | #pragma once 7 | // 8 | // include bundled or external copy of fmtlib's std support (for formatting e.g. 9 | // std::filesystem::path, std::thread::id, std::monostate, std::variant, ...) 10 | // 11 | #include 12 | 13 | #if !defined(SPDLOG_USE_STD_FORMAT) 14 | #if !defined(SPDLOG_FMT_EXTERNAL) 15 | #ifdef SPDLOG_HEADER_ONLY 16 | #ifndef FMT_HEADER_ONLY 17 | #define FMT_HEADER_ONLY 18 | #endif 19 | #endif 20 | #include 21 | #else 22 | #include 23 | #endif 24 | #endif 25 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/cmake/mimalloc-config-version.cmake: -------------------------------------------------------------------------------- 1 | set(mi_version_major 1) 2 | set(mi_version_minor 9) 3 | set(mi_version_patch 2) 4 | set(mi_version ${mi_version_major}.${mi_version_minor}) 5 | 6 | set(PACKAGE_VERSION ${mi_version}) 7 | if(PACKAGE_FIND_VERSION_MAJOR) 8 | if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "${mi_version_major}") 9 | if ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL "${mi_version_minor}") 10 | set(PACKAGE_VERSION_EXACT TRUE) 11 | elseif("${PACKAGE_FIND_VERSION_MINOR}" LESS "${mi_version_minor}") 12 | set(PACKAGE_VERSION_COMPATIBLE TRUE) 13 | else() 14 | set(PACKAGE_VERSION_UNSUITABLE TRUE) 15 | endif() 16 | else() 17 | set(PACKAGE_VERSION_UNSUITABLE TRUE) 18 | endif() 19 | endif() 20 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/periodic_worker-inl.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #ifndef SPDLOG_HEADER_ONLY 7 | #include 8 | #endif 9 | 10 | namespace spdlog { 11 | namespace details { 12 | 13 | // stop the worker thread and join it 14 | SPDLOG_INLINE periodic_worker::~periodic_worker() { 15 | if (worker_thread_.joinable()) { 16 | { 17 | std::lock_guard lock(mutex_); 18 | active_ = false; 19 | } 20 | cv_.notify_one(); 21 | worker_thread_.join(); 22 | } 23 | } 24 | 25 | } // namespace details 26 | } // namespace spdlog 27 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/contrib/vcpkg/usage: -------------------------------------------------------------------------------- 1 | Use the following CMake targets to import mimalloc: 2 | 3 | find_package(mimalloc CONFIG REQUIRED) 4 | target_link_libraries(main PRIVATE mimalloc) 5 | 6 | And use mimalloc in your sources as: 7 | 8 | #include 9 | #include 10 | int main(int argc, char** argv) { 11 | int* p = mi_malloc_tp(int); 12 | *p = mi_version(); 13 | printf("mimalloc version: %d\n", *p); 14 | mi_free(p); 15 | return 0; 16 | } 17 | 18 | When dynamically overriding on Windows, ensure `mimalloc.dll` is linked through some call to 19 | mimalloc (e.g. `mi_version()`), and that the `mimalloc-redirect.dll` is in the same directory. 20 | See https://github.com/microsoft/mimalloc/blob/dev/bin/readme.md for detailed information. 21 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/bench/utils.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright(c) 2015 Gabi Melman. 3 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 4 | // 5 | 6 | #pragma once 7 | 8 | #include 9 | #include 10 | #include 11 | 12 | namespace utils { 13 | 14 | template 15 | inline std::string format(const T &value) { 16 | static std::locale loc(""); 17 | std::stringstream ss; 18 | ss.imbue(loc); 19 | ss << value; 20 | return ss.str(); 21 | } 22 | 23 | template <> 24 | inline std::string format(const double &value) { 25 | static std::locale loc(""); 26 | std::stringstream ss; 27 | ss.imbue(loc); 28 | ss << std::fixed << std::setprecision(1) << value; 29 | return ss.str(); 30 | } 31 | 32 | } // namespace utils 33 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/simple/sleep5.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (sleep5.cpp of sleep5.exe) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | int __cdecl main(int argc, char ** argv) 15 | { 16 | if (argc == 2) { 17 | Sleep(atoi(argv[1]) * 1000); 18 | } 19 | else { 20 | printf("sleep5.exe: Starting.\n"); 21 | 22 | Sleep(5000); 23 | 24 | printf("sleep5.exe: Done sleeping.\n"); 25 | } 26 | return 0; 27 | } 28 | // 29 | ///////////////////////////////////////////////////////////////// End of File. 30 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/cping/iping.idl: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Module: iping.idl (cping.exe - COM Ping) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | import "objidl.idl"; 10 | import "oaidl.idl"; 11 | import "oleidl.idl"; 12 | 13 | 14 | [object, uuid(decdbeef-d1ac-11d1-96bc-00aa00573fb0), pointer_default(unique)] 15 | interface IPing : IUnknown 16 | { 17 | HRESULT Ping(void); 18 | HRESULT PingToServer([in] LPSTR pszString); 19 | HRESULT PingToClient([out] LPSTR *ppszString); 20 | HRESULT PingToClientSize([in] ULONG cbOut); 21 | }; 22 | // 23 | ///////////////////////////////////////////////////////////////// End of File. 24 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/sinks/sink-inl.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #ifndef SPDLOG_HEADER_ONLY 7 | #include 8 | #endif 9 | 10 | #include 11 | 12 | SPDLOG_INLINE bool spdlog::sinks::sink::should_log(spdlog::level::level_enum msg_level) const { 13 | return msg_level >= level_.load(std::memory_order_relaxed); 14 | } 15 | 16 | SPDLOG_INLINE void spdlog::sinks::sink::set_level(level::level_enum log_level) { 17 | level_.store(log_level, std::memory_order_relaxed); 18 | } 19 | 20 | SPDLOG_INLINE spdlog::level::level_enum spdlog::sinks::sink::level() const { 21 | return static_cast(level_.load(std::memory_order_relaxed)); 22 | } 23 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/src/detver.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Common version parameters. 4 | // 5 | // Microsoft Research Detours Package, Version 4.0.1 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #define _USING_V110_SDK71_ 1 11 | #include "winver.h" 12 | #if 0 13 | #include 14 | #include 15 | #else 16 | #ifndef DETOURS_STRINGIFY 17 | #define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x) 18 | #define DETOURS_STRINGIFY_(x) #x 19 | #endif 20 | 21 | #define VER_FILEFLAGSMASK 0x3fL 22 | #define VER_FILEFLAGS 0x0L 23 | #define VER_FILEOS 0x00040004L 24 | #define VER_FILETYPE 0x00000002L 25 | #define VER_FILESUBTYPE 0x00000000L 26 | #endif 27 | #define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS) 28 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/contrib/docker/alpine-arm32v7/Dockerfile: -------------------------------------------------------------------------------- 1 | # install from an image 2 | # download first an appropriate tar.gz image into the current directory 3 | # from: 4 | FROM scratch 5 | 6 | # Substitute the image name that was downloaded 7 | ADD alpine-minirootfs-20240329-armv7.tar.gz / 8 | 9 | # Install tools 10 | RUN apk add build-base make cmake 11 | RUN apk add git 12 | RUN apk add vim 13 | 14 | RUN mkdir -p /home/dev 15 | WORKDIR /home/dev 16 | 17 | # Get mimalloc 18 | RUN git clone https://github.com/microsoft/mimalloc -b dev2 19 | RUN mkdir -p mimalloc/out/release 20 | RUN mkdir -p mimalloc/out/debug 21 | 22 | # Build mimalloc debug 23 | WORKDIR /home/dev/mimalloc/out/debug 24 | RUN cmake ../.. -DMI_DEBUG_FULL=ON 25 | RUN make -j 26 | RUN make test 27 | 28 | CMD ["/bin/sh"] 29 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/include/detver.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Common version parameters. 4 | // 5 | // Microsoft Research Detours Package, Version 4.0.1 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #define _USING_V110_SDK71_ 1 11 | #include "winver.h" 12 | #if 0 13 | #include 14 | #include 15 | #else 16 | #ifndef DETOURS_STRINGIFY 17 | #define DETOURS_STRINGIFY(x) DETOURS_STRINGIFY_(x) 18 | #define DETOURS_STRINGIFY_(x) #x 19 | #endif 20 | 21 | #define VER_FILEFLAGSMASK 0x3fL 22 | #define VER_FILEFLAGS 0x0L 23 | #define VER_FILEOS 0x00040004L 24 | #define VER_FILETYPE 0x00000002L 25 | #define VER_FILESUBTYPE 0x00000000L 26 | #endif 27 | #define VER_DETOURS_BITS DETOUR_STRINGIFY(DETOURS_BITS) 28 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/.github/workflows/macos.yml: -------------------------------------------------------------------------------- 1 | name: macos 2 | 3 | on: [push, pull_request] 4 | 5 | permissions: 6 | contents: read 7 | 8 | jobs: 9 | build: 10 | runs-on: macOS-latest 11 | name: "macOS Clang (C++11, Release)" 12 | steps: 13 | - uses: actions/checkout@v4 14 | - name: Build 15 | run: | 16 | mkdir -p build && cd build 17 | cmake .. \ 18 | -DCMAKE_BUILD_TYPE=Release \ 19 | -DCMAKE_CXX_STANDARD=11 \ 20 | -DSPDLOG_BUILD_EXAMPLE=ON \ 21 | -DSPDLOG_BUILD_EXAMPLE_HO=ON \ 22 | -DSPDLOG_BUILD_WARNINGS=ON \ 23 | -DSPDLOG_BUILD_BENCH=OFF \ 24 | -DSPDLOG_BUILD_TESTS=ON \ 25 | -DSPDLOG_BUILD_TESTS_HO=OFF \ 26 | -DSPDLOG_SANITIZE_ADDRESS=OFF 27 | make -j 4 28 | ctest -j 4 --output-on-failure 29 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/cfg/helpers.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | namespace spdlog { 10 | namespace cfg { 11 | namespace helpers { 12 | // 13 | // Init levels from given string 14 | // 15 | // Examples: 16 | // 17 | // set global level to debug: "debug" 18 | // turn off all logging except for logger1: "off,logger1=debug" 19 | // turn off all logging except for logger1 and logger2: "off,logger1=debug,logger2=info" 20 | // 21 | SPDLOG_API void load_levels(const std::string &txt); 22 | } // namespace helpers 23 | 24 | } // namespace cfg 25 | } // namespace spdlog 26 | 27 | #ifdef SPDLOG_HEADER_ONLY 28 | #include "helpers-inl.h" 29 | #endif // SPDLOG_HEADER_ONLY 30 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/synchronous_factory.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include "registry.h" 7 | 8 | namespace spdlog { 9 | 10 | // Default logger factory- creates synchronous loggers 11 | class logger; 12 | 13 | struct synchronous_factory { 14 | template 15 | static std::shared_ptr create(std::string logger_name, SinkArgs &&...args) { 16 | auto sink = std::make_shared(std::forward(args)...); 17 | auto new_logger = std::make_shared(std::move(logger_name), std::move(sink)); 18 | details::registry::instance().initialize_logger(new_logger); 19 | return new_logger; 20 | } 21 | }; 22 | } // namespace spdlog 23 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/src/file_sinks.cpp: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #ifndef SPDLOG_COMPILED_LIB 5 | #error Please define SPDLOG_COMPILED_LIB to compile this file. 6 | #endif 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | #include 14 | 15 | template class SPDLOG_API spdlog::sinks::basic_file_sink; 16 | template class SPDLOG_API spdlog::sinks::basic_file_sink; 17 | 18 | #include 19 | template class SPDLOG_API spdlog::sinks::rotating_file_sink; 20 | template class SPDLOG_API spdlog::sinks::rotating_file_sink; 21 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/cmake/mimalloc-config.cmake: -------------------------------------------------------------------------------- 1 | include(${CMAKE_CURRENT_LIST_DIR}/mimalloc.cmake) 2 | get_filename_component(MIMALLOC_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}" PATH) # one up from the cmake dir, e.g. /usr/local/lib/cmake/mimalloc-2.0 3 | get_filename_component(MIMALLOC_VERSION_DIR "${CMAKE_CURRENT_LIST_DIR}" NAME) 4 | string(REPLACE "/lib/cmake" "/lib" MIMALLOC_LIBRARY_DIR "${MIMALLOC_CMAKE_DIR}") 5 | if("${MIMALLOC_VERSION_DIR}" EQUAL "mimalloc") 6 | # top level install 7 | string(REPLACE "/lib/cmake" "/include" MIMALLOC_INCLUDE_DIR "${MIMALLOC_CMAKE_DIR}") 8 | set(MIMALLOC_OBJECT_DIR "${MIMALLOC_LIBRARY_DIR}") 9 | else() 10 | # versioned 11 | string(REPLACE "/lib/cmake/" "/include/" MIMALLOC_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}") 12 | string(REPLACE "/lib/cmake/" "/lib/" MIMALLOC_OBJECT_DIR "${CMAKE_CURRENT_LIST_DIR}") 13 | endif() 14 | set(MIMALLOC_TARGET_DIR "${MIMALLOC_LIBRARY_DIR}") # legacy 15 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/test/main-override.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #include 7 | 8 | int main() { 9 | mi_version(); // ensure mimalloc library is linked 10 | void* p1 = malloc(78); 11 | void* p2 = malloc(24); 12 | free(p1); 13 | p1 = malloc(8); 14 | //char* s = strdup("hello\n"); 15 | free(p2); 16 | p2 = malloc(16); 17 | p1 = realloc(p1, 32); 18 | free(p1); 19 | free(p2); 20 | //free(s); 21 | //mi_collect(true); 22 | 23 | /* now test if override worked by allocating/freeing across the api's*/ 24 | //p1 = mi_malloc(32); 25 | //free(p1); 26 | //p2 = malloc(32); 27 | //mi_free(p2); 28 | p1 = malloc(24); 29 | p2 = reallocarray(p1, 16, 16); 30 | free(p2); 31 | p1 = malloc(24); 32 | assert(reallocarr(&p1, 16, 16) == 0); 33 | free(p1); 34 | mi_stats_print(NULL); 35 | return 0; 36 | } 37 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/cmake/JoinPaths.cmake: -------------------------------------------------------------------------------- 1 | # This module provides function for joining paths 2 | # known from most languages 3 | # 4 | # SPDX-License-Identifier: (MIT OR CC0-1.0) 5 | # Copyright 2020 Jan Tojnar 6 | # https://github.com/jtojnar/cmake-snips 7 | # 8 | # Modelled after Python’s os.path.join 9 | # https://docs.python.org/3.7/library/os.path.html#os.path.join 10 | # Windows not supported 11 | function(join_paths joined_path first_path_segment) 12 | set(temp_path "${first_path_segment}") 13 | foreach(current_segment IN LISTS ARGN) 14 | if(NOT ("${current_segment}" STREQUAL "")) 15 | if(IS_ABSOLUTE "${current_segment}") 16 | set(temp_path "${current_segment}") 17 | else() 18 | set(temp_path "${temp_path}/${current_segment}") 19 | endif() 20 | endif() 21 | endforeach() 22 | set(${joined_path} "${temp_path}" PARENT_SCOPE) 23 | endfunction() 24 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/meta/std_fs.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | #include 12 | 13 | #if JSON_HAS_EXPERIMENTAL_FILESYSTEM 14 | #include 15 | NLOHMANN_JSON_NAMESPACE_BEGIN 16 | namespace detail 17 | { 18 | namespace std_fs = std::experimental::filesystem; 19 | } // namespace detail 20 | NLOHMANN_JSON_NAMESPACE_END 21 | #elif JSON_HAS_FILESYSTEM 22 | #include // NOLINT(build/c++17) 23 | NLOHMANN_JSON_NAMESPACE_BEGIN 24 | namespace detail 25 | { 26 | namespace std_fs = std::filesystem; 27 | } // namespace detail 28 | NLOHMANN_JSON_NAMESPACE_END 29 | #endif 30 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/cping/obj.X86/iping_d.c: -------------------------------------------------------------------------------- 1 | /********************************************************* 2 | DllData file -- generated by MIDL compiler 3 | 4 | DO NOT ALTER THIS FILE 5 | 6 | This file is regenerated by MIDL on every IDL file compile. 7 | 8 | To completely reconstruct this file, delete it and rerun MIDL 9 | on all the IDL files in this DLL, specifying this file for the 10 | /dlldata command line option 11 | 12 | *********************************************************/ 13 | 14 | 15 | #include 16 | 17 | #ifdef __cplusplus 18 | extern "C" { 19 | #endif 20 | 21 | EXTERN_PROXY_FILE( iping ) 22 | 23 | 24 | PROXYFILE_LIST_START 25 | /* Start of list */ 26 | REFERENCE_PROXY_FILE( iping ), 27 | /* End of list */ 28 | PROXYFILE_LIST_END 29 | 30 | 31 | DLLDATA_ROUTINES( aProxyFileList, GET_DLL_CLSID ) 32 | 33 | #ifdef __cplusplus 34 | } /*extern "C" */ 35 | #endif 36 | 37 | /* end of generated dlldata file */ 38 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fmt/fmt.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright(c) 2016-2018 Gabi Melman. 3 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 4 | // 5 | 6 | #pragma once 7 | 8 | // 9 | // Include a bundled header-only copy of fmtlib or an external one. 10 | // By default spdlog include its own copy. 11 | // 12 | #include 13 | 14 | #if defined(SPDLOG_USE_STD_FORMAT) // SPDLOG_USE_STD_FORMAT is defined - use std::format 15 | #include 16 | #elif !defined(SPDLOG_FMT_EXTERNAL) 17 | #if !defined(SPDLOG_COMPILED_LIB) && !defined(FMT_HEADER_ONLY) 18 | #define FMT_HEADER_ONLY 19 | #endif 20 | #ifndef FMT_USE_WINDOWS_H 21 | #define FMT_USE_WINDOWS_H 0 22 | #endif 23 | 24 | #include 25 | #include 26 | 27 | #else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib 28 | #include 29 | #include 30 | #endif 31 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/test/readme.md: -------------------------------------------------------------------------------- 1 | Testing allocators is difficult as bugs may only surface after particular 2 | allocation patterns. The main approach to testing _mimalloc_ is therefore 3 | to have extensive internal invariant checking (see `page_is_valid` in `page.c` 4 | for example), which is enabled in debug mode with `-DMI_DEBUG_FULL=ON`. 5 | The main testing strategy is then to run [`mimalloc-bench`][bench] using full 6 | invariant checking to catch any potential problems over a wide range of intensive 7 | allocation benchmarks and programs. 8 | 9 | However, this does not test well for the entire API surface and this is tested 10 | with `test-api.c` when using `make test` (from `out/debug` etc). (This is 11 | not complete yet, please add to it.) 12 | 13 | The `main.c` and `main-override.c` are there to test if building and overriding 14 | from a local install works and therefore these build a separate `test/CMakeLists.txt`. 15 | 16 | [bench]: https://github.com/daanx/mimalloc-bench 17 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/string_utils.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | #include // size_t 12 | #include // string, to_string 13 | 14 | #include 15 | 16 | NLOHMANN_JSON_NAMESPACE_BEGIN 17 | namespace detail 18 | { 19 | 20 | template 21 | void int_to_string(StringType& target, std::size_t value) 22 | { 23 | // For ADL 24 | using std::to_string; 25 | target = to_string(value); 26 | } 27 | 28 | template 29 | StringType to_string(std::size_t value) 30 | { 31 | StringType result; 32 | int_to_string(result, value); 33 | return result; 34 | } 35 | 36 | } // namespace detail 37 | NLOHMANN_JSON_NAMESPACE_END 38 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/sinks/sink.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | namespace spdlog { 10 | 11 | namespace sinks { 12 | class SPDLOG_API sink { 13 | public: 14 | virtual ~sink() = default; 15 | virtual void log(const details::log_msg &msg) = 0; 16 | virtual void flush() = 0; 17 | virtual void set_pattern(const std::string &pattern) = 0; 18 | virtual void set_formatter(std::unique_ptr sink_formatter) = 0; 19 | 20 | void set_level(level::level_enum log_level); 21 | level::level_enum level() const; 22 | bool should_log(level::level_enum msg_level) const; 23 | 24 | protected: 25 | // sink log level - default is all 26 | level_t level_{level::trace}; 27 | }; 28 | 29 | } // namespace sinks 30 | } // namespace spdlog 31 | 32 | #ifdef SPDLOG_HEADER_ONLY 33 | #include "sink-inl.h" 34 | #endif 35 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/README.TXT: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## 3 | ## Samples README File 4 | ## 5 | ## Microsoft Research Detours Package 6 | ## 7 | ## Copyright (c) Microsoft Corporation. All rights reserved. 8 | ## 9 | 10 | BUILDING: 11 | ========= 12 | To build the sample applications, type "nmake" in the samples directory. 13 | Note that you must build setdll and syslog in order to use many of the 14 | other sample programs. 15 | 16 | COMMENTS: 17 | ========= 18 | Each of the sample directories has a test, which can be invoked by typing 19 | "nmake test", to demonstrate the usage of the sample. With very few 20 | exceptions, all of the executables also accept a "/?" command to display a 21 | usage message. 22 | 23 | The trace* samples log their output through the syelogd.exe daemon and hook 24 | CreateProcessW to load themselves into any child processes. For example, 25 | typing "withdll -d:traceapi.dll cmd.exe" will create a command shell under 26 | which all processes log their API calls through traceapi.dll. 27 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/contrib/vcpkg/vcpkg.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mimalloc", 3 | "version": "1.9.2", 4 | "port-version": 2, 5 | "description": "Compact general purpose allocator with excellent performance", 6 | "homepage": "https://github.com/microsoft/mimalloc", 7 | "license": "MIT", 8 | "supports": "!uwp", 9 | "dependencies": [ 10 | { 11 | "name": "vcpkg-cmake", 12 | "host": true 13 | }, 14 | { 15 | "name": "vcpkg-cmake-config", 16 | "host": true 17 | } 18 | ], 19 | "features": { 20 | "c": { 21 | "description": "Use C11 compilation (this can still override new/delete)" 22 | }, 23 | "override": { 24 | "description": "Override the standard malloc/free interface" 25 | }, 26 | "secure": { 27 | "description": "Use full security mitigations (like guard pages and randomization)" 28 | }, 29 | "xmalloc": { 30 | "description": "If out-of-memory, call abort() instead of returning NULL" 31 | }, 32 | "asm": { 33 | "description": "Generate assembly files" 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/contrib/vcpkg/vcpkg-cmake-wrapper.cmake: -------------------------------------------------------------------------------- 1 | _find_package(${ARGS}) 2 | 3 | if(CMAKE_CURRENT_LIST_DIR STREQUAL "${MIMALLOC_CMAKE_DIR}/${MIMALLOC_VERSION_DIR}") 4 | set(MIMALLOC_INCLUDE_DIR "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include") 5 | # As in vcpkg.cmake 6 | if(NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE MATCHES "^[Dd][Ee][Bb][Uu][Gg]$") 7 | set(MIMALLOC_LIBRARY_DIR "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib") 8 | else() 9 | set(MIMALLOC_LIBRARY_DIR "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib") 10 | endif() 11 | set(MIMALLOC_OBJECT_DIR "${MIMALLOC_LIBRARY_DIR}") 12 | set(MIMALLOC_TARGET_DIR "${MIMALLOC_LIBRARY_DIR}") 13 | endif() 14 | 15 | # vcpkg always configures either a static or dynamic library. 16 | # ensure to always expose the mimalloc target as either the static or dynamic build. 17 | if(TARGET mimalloc-static AND NOT TARGET mimalloc) 18 | add_library(mimalloc INTERFACE IMPORTED) 19 | set_target_properties(mimalloc PROPERTIES INTERFACE_LINK_LIBRARIES mimalloc-static) 20 | endif() 21 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/INSTALL: -------------------------------------------------------------------------------- 1 | Header Only Version 2 | ================================================================== 3 | Just copy the files to your build tree and use a C++11 compiler. 4 | Or use CMake: 5 | ``` 6 | add_executable(example_header_only example.cpp) 7 | target_link_libraries(example_header_only spdlog::spdlog_header_only) 8 | ``` 9 | 10 | Compiled Library Version 11 | ================================================================== 12 | CMake: 13 | ``` 14 | add_executable(example example.cpp) 15 | target_link_libraries(example spdlog::spdlog) 16 | ``` 17 | 18 | Or copy files src/*.cpp to your build tree and pass the -DSPDLOG_COMPILED_LIB to the compiler. 19 | 20 | Important Information for Compilation: 21 | ================================================================== 22 | * If you encounter compilation errors with gcc 4.8.x, please note that gcc 4.8.x does not fully support C++11. In such cases, consider upgrading your compiler or using a different version that fully supports C++11 standards 23 | 24 | Tested on: 25 | gcc 4.8.1 and above 26 | clang 3.5 27 | Visual Studio 2013 -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/example/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT) 2 | 3 | cmake_minimum_required(VERSION 3.11) 4 | project(spdlog_examples CXX) 5 | 6 | if(NOT TARGET spdlog) 7 | # Stand-alone build 8 | find_package(spdlog REQUIRED) 9 | endif() 10 | 11 | # --------------------------------------------------------------------------------------- 12 | # Example of using pre-compiled library 13 | # --------------------------------------------------------------------------------------- 14 | add_executable(example example.cpp) 15 | target_link_libraries(example PRIVATE spdlog::spdlog $<$:ws2_32>) 16 | 17 | # --------------------------------------------------------------------------------------- 18 | # Example of using header-only library 19 | # --------------------------------------------------------------------------------------- 20 | if(SPDLOG_BUILD_EXAMPLE_HO) 21 | add_executable(example_header_only example.cpp) 22 | target_link_libraries(example_header_only PRIVATE spdlog::spdlog_header_only) 23 | endif() 24 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/log_msg_buffer.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | 8 | namespace spdlog { 9 | namespace details { 10 | 11 | // Extend log_msg with internal buffer to store its payload. 12 | // This is needed since log_msg holds string_views that points to stack data. 13 | 14 | class SPDLOG_API log_msg_buffer : public log_msg { 15 | memory_buf_t buffer; 16 | void update_string_views(); 17 | 18 | public: 19 | log_msg_buffer() = default; 20 | explicit log_msg_buffer(const log_msg &orig_msg); 21 | log_msg_buffer(const log_msg_buffer &other); 22 | log_msg_buffer(log_msg_buffer &&other) SPDLOG_NOEXCEPT; 23 | log_msg_buffer &operator=(const log_msg_buffer &other); 24 | log_msg_buffer &operator=(log_msg_buffer &&other) SPDLOG_NOEXCEPT; 25 | }; 26 | 27 | } // namespace details 28 | } // namespace spdlog 29 | 30 | #ifdef SPDLOG_HEADER_ONLY 31 | #include "log_msg_buffer-inl.h" 32 | #endif 33 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/null_mutex.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | // null, no cost dummy "mutex" and dummy "atomic" int 9 | 10 | namespace spdlog { 11 | namespace details { 12 | struct null_mutex { 13 | void lock() const {} 14 | void unlock() const {} 15 | }; 16 | 17 | struct null_atomic_int { 18 | int value; 19 | null_atomic_int() = default; 20 | 21 | explicit null_atomic_int(int new_value) 22 | : value(new_value) {} 23 | 24 | int load(std::memory_order = std::memory_order_relaxed) const { return value; } 25 | 26 | void store(int new_value, std::memory_order = std::memory_order_relaxed) { value = new_value; } 27 | 28 | int exchange(int new_value, std::memory_order = std::memory_order_relaxed) { 29 | std::swap(new_value, value); 30 | return new_value; // return value before the call 31 | } 32 | }; 33 | 34 | } // namespace details 35 | } // namespace spdlog 36 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) [2025] [Disaster] 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/test/main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | void test_heap(void* p_out) { 6 | mi_heap_t* heap = mi_heap_new(); 7 | void* p1 = mi_heap_malloc(heap,32); 8 | void* p2 = mi_heap_malloc(heap,48); 9 | mi_free(p_out); 10 | mi_heap_destroy(heap); 11 | //mi_heap_delete(heap); mi_free(p1); mi_free(p2); 12 | } 13 | 14 | void test_large() { 15 | const size_t N = 1000; 16 | 17 | for (size_t i = 0; i < N; ++i) { 18 | size_t sz = 1ull << 21; 19 | char* a = mi_mallocn_tp(char,sz); 20 | for (size_t k = 0; k < sz; k++) { a[k] = 'x'; } 21 | mi_free(a); 22 | } 23 | } 24 | 25 | int main() { 26 | void* p1 = mi_malloc(16); 27 | void* p2 = mi_malloc(1000000); 28 | mi_free(p1); 29 | mi_free(p2); 30 | p1 = mi_malloc(16); 31 | p2 = mi_malloc(16); 32 | mi_free(p1); 33 | mi_free(p2); 34 | 35 | test_heap(mi_malloc(32)); 36 | 37 | p1 = mi_malloc_aligned(64, 16); 38 | p2 = mi_malloc_aligned(160,24); 39 | mi_free(p2); 40 | mi_free(p1); 41 | //test_large(); 42 | 43 | mi_collect(true); 44 | mi_stats_print(NULL); 45 | return 0; 46 | } 47 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/findfunc/findfunc.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detour Test Program (findfunc.cpp of findfunc.exe) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include 11 | #include 12 | #include 13 | #include "target.h" 14 | 15 | int __cdecl main(void) 16 | { 17 | printf("findfunc.exe: Starting.\n"); 18 | fflush(stdout); 19 | 20 | printf("DLLs:\n"); 21 | for (HMODULE hModule = NULL; (hModule = DetourEnumerateModules(hModule)) != NULL;) { 22 | CHAR szName[MAX_PATH] = { 0 }; 23 | GetModuleFileNameA(hModule, szName, sizeof(szName) - 1); 24 | printf(" %p: %s\n", hModule, szName); 25 | } 26 | 27 | DWORD dwCount = 10000; 28 | for (int i = 0; i < 3; i++) { 29 | printf("findfunc.exe: Calling (%d).\n", dwCount); 30 | dwCount = Target(dwCount) + 10000; 31 | } 32 | return 0; 33 | } 34 | // 35 | ///////////////////////////////////////////////////////////////// End of File. 36 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/input/position_t.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | #include // size_t 12 | 13 | #include 14 | 15 | NLOHMANN_JSON_NAMESPACE_BEGIN 16 | namespace detail 17 | { 18 | 19 | /// struct to capture the start position of the current token 20 | struct position_t 21 | { 22 | /// the total number of characters read 23 | std::size_t chars_read_total = 0; 24 | /// the number of characters read in the current line 25 | std::size_t chars_read_current_line = 0; 26 | /// the number of lines read 27 | std::size_t lines_read = 0; 28 | 29 | /// conversion to size_t to preserve SAX interface 30 | constexpr operator size_t() const 31 | { 32 | return chars_read_total; 33 | } 34 | }; 35 | 36 | } // namespace detail 37 | NLOHMANN_JSON_NAMESPACE_END 38 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/cfg/env.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | #include 6 | #include 7 | #include 8 | 9 | // 10 | // Init levels and patterns from env variables SPDLOG_LEVEL 11 | // Inspired from Rust's "env_logger" crate (https://crates.io/crates/env_logger). 12 | // Note - fallback to "info" level on unrecognized levels 13 | // 14 | // Examples: 15 | // 16 | // set global level to debug: 17 | // export SPDLOG_LEVEL=debug 18 | // 19 | // turn off all logging except for logger1: 20 | // export SPDLOG_LEVEL="*=off,logger1=debug" 21 | // 22 | 23 | // turn off all logging except for logger1 and logger2: 24 | // export SPDLOG_LEVEL="off,logger1=debug,logger2=info" 25 | 26 | namespace spdlog { 27 | namespace cfg { 28 | inline void load_env_levels() { 29 | auto env_val = details::os::getenv("SPDLOG_LEVEL"); 30 | if (!env_val.empty()) { 31 | helpers::load_levels(env_val); 32 | } 33 | } 34 | 35 | } // namespace cfg 36 | } // namespace spdlog 37 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/LICENSE.MIT: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2013-2025 Niels Lohmann 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/cmake/version.rc.in: -------------------------------------------------------------------------------- 1 | #define APSTUDIO_READONLY_SYMBOLS 2 | #include 3 | #undef APSTUDIO_READONLY_SYMBOLS 4 | 5 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 6 | 7 | 8 | VS_VERSION_INFO VERSIONINFO 9 | FILEVERSION @SPDLOG_VERSION_MAJOR@,@SPDLOG_VERSION_MINOR@,@SPDLOG_VERSION_PATCH@,0 10 | PRODUCTVERSION @SPDLOG_VERSION_MAJOR@,@SPDLOG_VERSION_MINOR@,@SPDLOG_VERSION_PATCH@,0 11 | FILEFLAGSMASK 0x3fL 12 | #ifdef _DEBUG 13 | FILEFLAGS 0x1L 14 | #else 15 | FILEFLAGS 0x0L 16 | #endif 17 | FILEOS 0x40004L 18 | FILETYPE 0x2L 19 | FILESUBTYPE 0x0L 20 | BEGIN 21 | BLOCK "StringFileInfo" 22 | BEGIN 23 | BLOCK "040904b0" 24 | BEGIN 25 | VALUE "FileDescription", "spdlog dll\0" 26 | VALUE "FileVersion", "@SPDLOG_VERSION@.0\0" 27 | VALUE "InternalName", "spdlog.dll\0" 28 | VALUE "LegalCopyright", "Copyright (C) spdlog\0" 29 | VALUE "ProductName", "spdlog\0" 30 | VALUE "ProductVersion", "@SPDLOG_VERSION@.0\0" 31 | END 32 | END 33 | BLOCK "VarFileInfo" 34 | BEGIN 35 | VALUE "Translation", 0x409, 1200 36 | END 37 | END 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018-2025 Microsoft Corporation, Daan Leijen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/LICENSE.md: -------------------------------------------------------------------------------- 1 | # Copyright (c) Microsoft Corporation 2 | 3 | All rights reserved. 4 | 5 | # MIT License 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | this software and associated documentation files (the "Software"), to deal in 9 | the Software without restriction, including without limitation the rights to 10 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | of the Software, and to permit persons to whom the Software is furnished to do 12 | so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/findfunc/target.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detour Test Program (target.cpp of target.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include 11 | #include 12 | #include "target.h" 13 | 14 | extern "C" DWORD WINAPI Hidden(DWORD dwCount) 15 | { 16 | printf("target.dll: Hidden(%d) -> %d.\n", dwCount, dwCount + 1); 17 | return dwCount + 1; 18 | } 19 | 20 | // We use this point to ensure Hidden isn't inlined. 21 | static DWORD (WINAPI * SelfHidden)(DWORD dwCount) = Hidden; 22 | 23 | DWORD WINAPI Target(DWORD dwCount) 24 | { 25 | printf("target.dll: Target (%d) -> %d.\n", dwCount, dwCount + 100); 26 | dwCount = SelfHidden(dwCount + 100); 27 | printf("target.dll: Target (.....) -> %d.\n", dwCount); 28 | return dwCount; 29 | } 30 | 31 | BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID reserved) 32 | { 33 | (void)hinst; 34 | (void)dwReason; 35 | (void)reserved; 36 | 37 | return TRUE; 38 | } 39 | 40 | // 41 | ///////////////////////////////////////////////////////////////// End of File. 42 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/tests/includes.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #if defined(__GNUC__) && __GNUC__ == 12 4 | #pragma GCC diagnostic push 5 | #pragma GCC diagnostic ignored "-Wmaybe-uninitialized" // Workaround for GCC 12 6 | #endif 7 | #include 8 | #if defined(__GNUC__) && __GNUC__ == 12 9 | #pragma GCC diagnostic pop 10 | #endif 11 | 12 | #include "utils.h" 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | 24 | #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG 25 | 26 | #include "spdlog/spdlog.h" 27 | #include "spdlog/async.h" 28 | #include "spdlog/details/fmt_helper.h" 29 | #include "spdlog/details/os.h" 30 | 31 | #ifndef SPDLOG_NO_TLS 32 | #include "spdlog/mdc.h" 33 | #endif 34 | 35 | #include "spdlog/sinks/basic_file_sink.h" 36 | #include "spdlog/sinks/daily_file_sink.h" 37 | #include "spdlog/sinks/null_sink.h" 38 | #include "spdlog/sinks/ostream_sink.h" 39 | #include "spdlog/sinks/rotating_file_sink.h" 40 | #include "spdlog/sinks/stdout_color_sinks.h" 41 | #include "spdlog/sinks/msvc_sink.h" 42 | #include "spdlog/pattern_formatter.h" 43 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/cmake/ide.cmake: -------------------------------------------------------------------------------- 1 | # --------------------------------------------------------------------------------------- 2 | # IDE support for headers 3 | # --------------------------------------------------------------------------------------- 4 | set(SPDLOG_HEADERS_DIR "${CMAKE_CURRENT_LIST_DIR}/../include") 5 | 6 | file(GLOB SPDLOG_TOP_HEADERS "${SPDLOG_HEADERS_DIR}/spdlog/*.h") 7 | file(GLOB SPDLOG_DETAILS_HEADERS "${SPDLOG_HEADERS_DIR}/spdlog/details/*.h") 8 | file(GLOB SPDLOG_SINKS_HEADERS "${SPDLOG_HEADERS_DIR}/spdlog/sinks/*.h") 9 | file(GLOB SPDLOG_FMT_HEADERS "${SPDLOG_HEADERS_DIR}/spdlog/fmt/*.h") 10 | file(GLOB SPDLOG_FMT_BUNDELED_HEADERS "${SPDLOG_HEADERS_DIR}/spdlog/fmt/bundled/*.h") 11 | set(SPDLOG_ALL_HEADERS ${SPDLOG_TOP_HEADERS} ${SPDLOG_DETAILS_HEADERS} ${SPDLOG_SINKS_HEADERS} ${SPDLOG_FMT_HEADERS} 12 | ${SPDLOG_FMT_BUNDELED_HEADERS}) 13 | 14 | source_group("Header Files\\spdlog" FILES ${SPDLOG_TOP_HEADERS}) 15 | source_group("Header Files\\spdlog\\details" FILES ${SPDLOG_DETAILS_HEADERS}) 16 | source_group("Header Files\\spdlog\\sinks" FILES ${SPDLOG_SINKS_HEADERS}) 17 | source_group("Header Files\\spdlog\\fmt" FILES ${SPDLOG_FMT_HEADERS}) 18 | source_group("Header Files\\spdlog\\fmt\\bundled\\" FILES ${SPDLOG_FMT_BUNDELED_HEADERS}) 19 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/src/spdlog.cpp: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #ifndef SPDLOG_COMPILED_LIB 5 | #error Please define SPDLOG_COMPILED_LIB to compile this file. 6 | #endif 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | #include 22 | 23 | // template instantiate logger constructor with sinks init list 24 | template SPDLOG_API spdlog::logger::logger(std::string name, 25 | sinks_init_list::iterator begin, 26 | sinks_init_list::iterator end); 27 | template class SPDLOG_API spdlog::sinks::base_sink; 28 | template class SPDLOG_API spdlog::sinks::base_sink; 29 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/iterators/internal_iterator.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | #include 12 | #include 13 | 14 | NLOHMANN_JSON_NAMESPACE_BEGIN 15 | namespace detail 16 | { 17 | 18 | /*! 19 | @brief an iterator value 20 | 21 | @note This structure could easily be a union, but MSVC currently does not allow 22 | unions members with complex constructors, see https://github.com/nlohmann/json/pull/105. 23 | */ 24 | template struct internal_iterator 25 | { 26 | /// iterator for JSON objects 27 | typename BasicJsonType::object_t::iterator object_iterator {}; 28 | /// iterator for JSON arrays 29 | typename BasicJsonType::array_t::iterator array_iterator {}; 30 | /// generic iterator for all other types 31 | primitive_iterator_t primitive_iterator {}; 32 | }; 33 | 34 | } // namespace detail 35 | NLOHMANN_JSON_NAMESPACE_END 36 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/tests/test_circular_q.cpp: -------------------------------------------------------------------------------- 1 | #include "includes.h" 2 | #include "spdlog/details/circular_q.h" 3 | 4 | using q_type = spdlog::details::circular_q; 5 | TEST_CASE("test_size", "[circular_q]") { 6 | const size_t q_size = 4; 7 | q_type q(q_size); 8 | REQUIRE(q.size() == 0); 9 | REQUIRE(q.empty() == true); 10 | for (size_t i = 0; i < q_size; i++) { 11 | q.push_back(std::move(i)); 12 | } 13 | REQUIRE(q.size() == q_size); 14 | q.push_back(999); 15 | REQUIRE(q.size() == q_size); 16 | } 17 | 18 | TEST_CASE("test_rolling", "[circular_q]") { 19 | const size_t q_size = 4; 20 | q_type q(q_size); 21 | 22 | for (size_t i = 0; i < q_size + 2; i++) { 23 | q.push_back(std::move(i)); 24 | } 25 | 26 | REQUIRE(q.size() == q_size); 27 | 28 | REQUIRE(q.front() == 2); 29 | q.pop_front(); 30 | 31 | REQUIRE(q.front() == 3); 32 | q.pop_front(); 33 | 34 | REQUIRE(q.front() == 4); 35 | q.pop_front(); 36 | 37 | REQUIRE(q.front() == 5); 38 | q.pop_front(); 39 | 40 | REQUIRE(q.empty()); 41 | 42 | q.push_back(6); 43 | REQUIRE(q.front() == 6); 44 | } 45 | 46 | TEST_CASE("test_empty", "[circular_q]") { 47 | q_type q(0); 48 | q.push_back(1); 49 | REQUIRE(q.empty()); 50 | } -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/doc/mimalloc-doxygen.css: -------------------------------------------------------------------------------- 1 | #projectlogo img { 2 | padding: 1ex; 3 | } 4 | tt, code, kbd, samp, div.memproto, div.fragment, div.line, table.memname { 5 | font-family: Consolas, Monaco, Inconsolata, "Courier New", monospace; 6 | } 7 | .image img, .textblock img { 8 | max-width: 99%; 9 | max-height: 350px; 10 | } 11 | table.memname, .memname{ 12 | font-weight: bold; 13 | } 14 | code { 15 | background-color: #EEE; 16 | padding: 0ex 0.25ex; 17 | } 18 | body { 19 | margin: 1ex 1ex 0ex 1ex; 20 | border: 1px solid black; 21 | } 22 | .contents table, .contents div, .contents p, .contents dl { 23 | font-size: 16px; 24 | line-height: 1.44; 25 | } 26 | body #nav-tree .label { 27 | font-size: 14px; 28 | } 29 | a{ 30 | text-decoration: underline; 31 | } 32 | #side-nav { 33 | margin-left: 1ex; 34 | border-left: 1px solid black; 35 | } 36 | #nav-tree { 37 | padding-left: 1ex; 38 | } 39 | #nav-path { 40 | display: none; 41 | } 42 | div.fragment { 43 | background-color: #EEE; 44 | padding: 0.25ex 0.5ex; 45 | border-color: black; 46 | } 47 | #nav-sync img { 48 | display: none; 49 | } 50 | h1,h2,h3,h4,h5,h6 { 51 | transition:none; 52 | } 53 | .memtitle { 54 | background-image: none; 55 | background-color: #EEE; 56 | } 57 | table.memproto, .memproto { 58 | text-shadow: none; 59 | font-size: 110%; 60 | } 61 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/backtracer.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | // Store log messages in circular buffer. 14 | // Useful for storing debug data in case of error/warning happens. 15 | 16 | namespace spdlog { 17 | namespace details { 18 | class SPDLOG_API backtracer { 19 | mutable std::mutex mutex_; 20 | std::atomic enabled_{false}; 21 | circular_q messages_; 22 | 23 | public: 24 | backtracer() = default; 25 | backtracer(const backtracer &other); 26 | 27 | backtracer(backtracer &&other) SPDLOG_NOEXCEPT; 28 | backtracer &operator=(backtracer other); 29 | 30 | void enable(size_t size); 31 | void disable(); 32 | bool enabled() const; 33 | void push_back(const log_msg &msg); 34 | bool empty() const; 35 | 36 | // pop all items in the q and apply the given fun on each of them. 37 | void foreach_pop(std::function fun); 38 | }; 39 | 40 | } // namespace details 41 | } // namespace spdlog 42 | 43 | #ifdef SPDLOG_HEADER_ONLY 44 | #include "backtracer-inl.h" 45 | #endif 46 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/json_custom_base_class.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | #include // conditional, is_same 12 | 13 | #include 14 | 15 | NLOHMANN_JSON_NAMESPACE_BEGIN 16 | namespace detail 17 | { 18 | 19 | /*! 20 | @brief Default base class of the @ref basic_json class. 21 | 22 | So that the correct implementations of the copy / move ctors / assign operators 23 | of @ref basic_json do not require complex case distinctions 24 | (no base class / custom base class used as customization point), 25 | @ref basic_json always has a base class. 26 | By default, this class is used because it is empty and thus has no effect 27 | on the behavior of @ref basic_json. 28 | */ 29 | struct json_default_base {}; 30 | 31 | template 32 | using json_base_class = typename std::conditional < 33 | std::is_same::value, 34 | json_default_base, 35 | T 36 | >::type; 37 | 38 | } // namespace detail 39 | NLOHMANN_JSON_NAMESPACE_END 40 | -------------------------------------------------------------------------------- /StormBreaker.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.12.35527.113 d17.12 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "StormMemPoolFix", "StormMemPoolFix\StormMemPoolFix.vcxproj", "{F1E2F542-0258-4F16-AAF0-B0E75F4E1956}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {F1E2F542-0258-4F16-AAF0-B0E75F4E1956}.Debug|x64.ActiveCfg = Debug|x64 17 | {F1E2F542-0258-4F16-AAF0-B0E75F4E1956}.Debug|x64.Build.0 = Debug|x64 18 | {F1E2F542-0258-4F16-AAF0-B0E75F4E1956}.Debug|x86.ActiveCfg = Debug|Win32 19 | {F1E2F542-0258-4F16-AAF0-B0E75F4E1956}.Debug|x86.Build.0 = Debug|Win32 20 | {F1E2F542-0258-4F16-AAF0-B0E75F4E1956}.Release|x64.ActiveCfg = Release|x64 21 | {F1E2F542-0258-4F16-AAF0-B0E75F4E1956}.Release|x64.Build.0 = Release|x64 22 | {F1E2F542-0258-4F16-AAF0-B0E75F4E1956}.Release|x86.ActiveCfg = Release|Win32 23 | {F1E2F542-0258-4F16-AAF0-B0E75F4E1956}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/log_msg.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | namespace spdlog { 10 | namespace details { 11 | struct SPDLOG_API log_msg { 12 | log_msg() = default; 13 | log_msg(log_clock::time_point log_time, 14 | source_loc loc, 15 | string_view_t logger_name, 16 | level::level_enum lvl, 17 | string_view_t msg); 18 | log_msg(source_loc loc, string_view_t logger_name, level::level_enum lvl, string_view_t msg); 19 | log_msg(string_view_t logger_name, level::level_enum lvl, string_view_t msg); 20 | log_msg(const log_msg &other) = default; 21 | log_msg &operator=(const log_msg &other) = default; 22 | 23 | string_view_t logger_name; 24 | level::level_enum level{level::off}; 25 | log_clock::time_point time; 26 | size_t thread_id{0}; 27 | 28 | // wrapping the formatted text with color (updated by pattern_formatter). 29 | mutable size_t color_range_start{0}; 30 | mutable size_t color_range_end{0}; 31 | 32 | source_loc source; 33 | string_view_t payload; 34 | }; 35 | } // namespace details 36 | } // namespace spdlog 37 | 38 | #ifdef SPDLOG_HEADER_ONLY 39 | #include "log_msg-inl.h" 40 | #endif 41 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/member/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## 3 | ## Makefile for Detours Test Programs. 4 | ## 5 | ## Microsoft Research Detours Package 6 | ## 7 | ## Copyright (c) Microsoft Corporation. All rights reserved. 8 | ## 9 | 10 | !include ..\common.mak 11 | 12 | LIBS=$(LIBS) kernel32.lib 13 | 14 | all: dirs \ 15 | $(BIND)\member.exe \ 16 | !IF $(DETOURS_SOURCE_BROWSING)==1 17 | $(OBJD)\member.bsc 18 | !ENDIF 19 | 20 | clean: 21 | -del *~ 2> nul 22 | -del $(BIND)\member.* 2> nul 23 | -rmdir /q /s $(OBJD) 2>nul 24 | 25 | realclean: clean 26 | -rmdir /q /s $(OBJDS) 2>nul 27 | 28 | dirs: 29 | @if not exist $(BIND) mkdir $(BIND) && echo. Created $(BIND) 30 | @if not exist $(OBJD) mkdir $(OBJD) && echo. Created $(OBJD) 31 | 32 | $(OBJD)\member.obj : member.cpp 33 | 34 | $(BIND)\member.exe : $(OBJD)\member.obj $(DEPS) 35 | cl $(CFLAGS) /Fe$@ /Fd$(@R).pdb $(OBJD)\member.obj \ 36 | /link $(LINKFLAGS) $(LIBS) /subsystem:console 37 | 38 | $(OBJD)\member.bsc : $(OBJD)\member.obj 39 | bscmake /v /n /o $@ $(OBJD)\member.sbr 40 | 41 | ############################################################################## 42 | 43 | test: $(BIND)\member.exe 44 | @echo. 45 | $(BIND)\member.exe 46 | @echo. 47 | 48 | ################################################################# End of File. 49 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/region/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## 3 | ## Makefile for Detours Test Programs. 4 | ## 5 | ## Microsoft Research Detours Package 6 | ## 7 | ## Copyright (c) Microsoft Corporation. All rights reserved. 8 | ## 9 | 10 | !include ..\common.mak 11 | 12 | LIBS=$(LIBS) kernel32.lib 13 | 14 | all: dirs \ 15 | $(BIND)\region.exe \ 16 | !IF $(DETOURS_SOURCE_BROWSING)==1 17 | $(OBJD)\region.bsc 18 | !ENDIF 19 | 20 | clean: 21 | -del *~ 2> nul 22 | -del $(BIND)\region.* 2> nul 23 | -rmdir /q /s $(OBJD) 2>nul 24 | 25 | realclean: clean 26 | -rmdir /q /s $(OBJDS) 2>nul 27 | 28 | dirs: 29 | @if not exist $(BIND) mkdir $(BIND) && echo. Created $(BIND) 30 | @if not exist $(OBJD) mkdir $(OBJD) && echo. Created $(OBJD) 31 | 32 | $(OBJD)\region.obj : region.cpp 33 | 34 | $(BIND)\region.exe : $(OBJD)\region.obj $(DEPS) 35 | cl $(CFLAGS) /Fe$@ /Fd$(@R).pdb $(OBJD)\region.obj \ 36 | /link $(LINKFLAGS) $(LIBS) /subsystem:console 37 | 38 | $(OBJD)\region.bsc : $(OBJD)\region.obj 39 | bscmake /v /n /o $@ $(OBJD)\region.sbr 40 | 41 | ############################################################################## 42 | 43 | test: $(BIND)\region.exe 44 | @echo. 45 | $(BIND)\region.exe 46 | @echo. 47 | 48 | ################################################################# End of File. 49 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/cfg/argv.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | #include 6 | #include 7 | 8 | // 9 | // Init log levels using each argv entry that starts with "SPDLOG_LEVEL=" 10 | // 11 | // set all loggers to debug level: 12 | // example.exe "SPDLOG_LEVEL=debug" 13 | 14 | // set logger1 to trace level 15 | // example.exe "SPDLOG_LEVEL=logger1=trace" 16 | 17 | // turn off all logging except for logger1 and logger2: 18 | // example.exe "SPDLOG_LEVEL=off,logger1=debug,logger2=info" 19 | 20 | namespace spdlog { 21 | namespace cfg { 22 | 23 | // search for SPDLOG_LEVEL= in the args and use it to init the levels 24 | inline void load_argv_levels(int argc, const char **argv) { 25 | const std::string spdlog_level_prefix = "SPDLOG_LEVEL="; 26 | for (int i = 1; i < argc; i++) { 27 | std::string arg = argv[i]; 28 | if (arg.find(spdlog_level_prefix) == 0) { 29 | auto levels_string = arg.substr(spdlog_level_prefix.size()); 30 | helpers::load_levels(levels_string); 31 | } 32 | } 33 | } 34 | 35 | inline void load_argv_levels(int argc, char **argv) { 36 | load_argv_levels(argc, const_cast(argv)); 37 | } 38 | 39 | } // namespace cfg 40 | } // namespace spdlog 41 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/commem/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## 3 | ## Makefile for Detours Test Programs. 4 | ## 5 | ## Microsoft Research Detours Package 6 | ## 7 | ## Copyright (c) Microsoft Corporation. All rights reserved. 8 | ## 9 | 10 | !include ..\common.mak 11 | 12 | LIBS=$(LIBS) kernel32.lib 13 | 14 | all: dirs \ 15 | $(BIND)\commem.exe \ 16 | !IF $(DETOURS_SOURCE_BROWSING)==1 17 | $(OBJD)\commem.bsc 18 | !ENDIF 19 | 20 | clean: 21 | -del *~ *.obj *.sbr 2> nul 22 | -del $(BIND)\commem.* 2> nul 23 | -rmdir /q /s $(OBJD) 2>nul 24 | 25 | realclean: clean 26 | -rmdir /q /s $(OBJDS) 2>nul 27 | 28 | dirs: 29 | @if not exist $(BIND) mkdir $(BIND) && echo. Created $(BIND) 30 | @if not exist $(OBJD) mkdir $(OBJD) && echo. Created $(OBJD) 31 | 32 | $(BIND)\commem.obj : commem.cpp 33 | 34 | $(BIND)\commem.exe : $(OBJD)\commem.obj $(DEPS) 35 | cl $(CFLAGS) /Fe$@ /Fd$(@R).pdb $(OBJD)\commem.obj \ 36 | /link $(LINKFLAGS) $(LIBS) ole32.lib /subsystem:console 37 | 38 | $(OBJD)\commem.bsc : $(OBJD)\commem.obj 39 | bscmake /v /n /o $@ $(OBJD)\commem.sbr 40 | 41 | ############################################################################## 42 | 43 | test: $(BIND)\commem.exe 44 | @echo. 45 | $(BIND)\commem.exe 46 | @echo. 47 | 48 | ################################################################# End of File. 49 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/dumpi/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## 3 | ## Makefile for Detours Test Programs - Dump Imports 4 | ## 5 | ## Microsoft Research Detours Package 6 | ## 7 | ## Copyright (c) Microsoft Corporation. All rights reserved. 8 | ## 9 | 10 | !include ..\common.mak 11 | 12 | LIBS=$(LIBS) kernel32.lib 13 | 14 | all: dirs \ 15 | $(BIND)\dumpi.exe \ 16 | !IF $(DETOURS_SOURCE_BROWSING)==1 17 | $(OBJD)\dumpi.bsc \ 18 | !ENDIF 19 | 20 | clean: 21 | -del *~ 2>nul 22 | -del $(BIND)\dumpi.* 2>nul 23 | -rmdir /q /s $(OBJD) 2>nul 24 | 25 | realclean: clean 26 | -rmdir /q /s $(OBJDS) 2>nul 27 | 28 | dirs: 29 | @if not exist $(BIND) mkdir $(BIND) && echo. Created $(BIND) 30 | @if not exist $(OBJD) mkdir $(OBJD) && echo. Created $(OBJD) 31 | 32 | $(OBJD)\dumpi.obj : dumpi.cpp 33 | 34 | $(BIND)\dumpi.exe : $(OBJD)\dumpi.obj $(DEPS) 35 | cl $(CFLAGS) /Fe$@ /Fd$(@R).pdb $(OBJD)\dumpi.obj \ 36 | /link $(LINKFLAGS) $(LIBS) \ 37 | /subsystem:console 38 | 39 | $(OBJD)\dumpi.bsc : $(OBJD)\dumpi.obj 40 | bscmake /v /n /o $@ $(OBJD)\dumpi.sbr 41 | 42 | ############################################################################## 43 | 44 | test: $(BIND)\dumpi.exe 45 | $(BIND)\dumpi.exe $(BIND)\slept.dll $(BIND)\sleepold.exe 46 | 47 | ################################################################# End of File. 48 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Gabi Melman. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | 23 | -- NOTE: Third party dependency used by this software -- 24 | This software depends on the fmt lib (MIT License), 25 | and users must comply to its license: https://raw.githubusercontent.com/fmtlib/fmt/master/LICENSE 26 | 27 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/sinks/basic_file_sink-inl.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #ifndef SPDLOG_HEADER_ONLY 7 | #include 8 | #endif 9 | 10 | #include 11 | #include 12 | 13 | namespace spdlog { 14 | namespace sinks { 15 | 16 | template 17 | SPDLOG_INLINE basic_file_sink::basic_file_sink(const filename_t &filename, 18 | bool truncate, 19 | const file_event_handlers &event_handlers) 20 | : file_helper_{event_handlers} { 21 | file_helper_.open(filename, truncate); 22 | } 23 | 24 | template 25 | SPDLOG_INLINE const filename_t &basic_file_sink::filename() const { 26 | return file_helper_.filename(); 27 | } 28 | 29 | template 30 | SPDLOG_INLINE void basic_file_sink::sink_it_(const details::log_msg &msg) { 31 | memory_buf_t formatted; 32 | base_sink::formatter_->format(msg, formatted); 33 | file_helper_.write(formatted); 34 | } 35 | 36 | template 37 | SPDLOG_INLINE void basic_file_sink::flush_() { 38 | file_helper_.flush(); 39 | } 40 | 41 | } // namespace sinks 42 | } // namespace spdlog 43 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/sinks/null_sink.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | #include 11 | 12 | namespace spdlog { 13 | namespace sinks { 14 | 15 | template 16 | class null_sink : public base_sink { 17 | protected: 18 | void sink_it_(const details::log_msg &) override {} 19 | void flush_() override {} 20 | }; 21 | 22 | using null_sink_mt = null_sink; 23 | using null_sink_st = null_sink; 24 | 25 | } // namespace sinks 26 | 27 | template 28 | inline std::shared_ptr null_logger_mt(const std::string &logger_name) { 29 | auto null_logger = Factory::template create(logger_name); 30 | null_logger->set_level(level::off); 31 | return null_logger; 32 | } 33 | 34 | template 35 | inline std::shared_ptr null_logger_st(const std::string &logger_name) { 36 | auto null_logger = Factory::template create(logger_name); 37 | null_logger->set_level(level::off); 38 | return null_logger; 39 | } 40 | 41 | } // namespace spdlog 42 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/sinks/ostream_sink.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | #include 10 | #include 11 | 12 | namespace spdlog { 13 | namespace sinks { 14 | template 15 | class ostream_sink final : public base_sink { 16 | public: 17 | explicit ostream_sink(std::ostream &os, bool force_flush = false) 18 | : ostream_(os), 19 | force_flush_(force_flush) {} 20 | ostream_sink(const ostream_sink &) = delete; 21 | ostream_sink &operator=(const ostream_sink &) = delete; 22 | 23 | protected: 24 | void sink_it_(const details::log_msg &msg) override { 25 | memory_buf_t formatted; 26 | base_sink::formatter_->format(msg, formatted); 27 | ostream_.write(formatted.data(), static_cast(formatted.size())); 28 | if (force_flush_) { 29 | ostream_.flush(); 30 | } 31 | } 32 | 33 | void flush_() override { ostream_.flush(); } 34 | 35 | std::ostream &ostream_; 36 | bool force_flush_; 37 | }; 38 | 39 | using ostream_sink_mt = ostream_sink; 40 | using ostream_sink_st = ostream_sink; 41 | 42 | } // namespace sinks 43 | } // namespace spdlog 44 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/tests/test_custom_callbacks.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This content is released under the MIT License as specified in 3 | * https://raw.githubusercontent.com/gabime/spdlog/master/LICENSE 4 | */ 5 | #include "includes.h" 6 | #include "test_sink.h" 7 | #include "spdlog/sinks/callback_sink.h" 8 | #include "spdlog/async.h" 9 | #include "spdlog/common.h" 10 | 11 | TEST_CASE("custom_callback_logger", "[custom_callback_logger]") { 12 | std::vector lines; 13 | spdlog::pattern_formatter formatter; 14 | auto callback_logger = 15 | std::make_shared([&](const spdlog::details::log_msg &msg) { 16 | spdlog::memory_buf_t formatted; 17 | formatter.format(msg, formatted); 18 | auto eol_len = strlen(spdlog::details::os::default_eol); 19 | lines.emplace_back(formatted.begin(), formatted.end() - eol_len); 20 | }); 21 | std::shared_ptr test_sink(new spdlog::sinks::test_sink_st); 22 | 23 | spdlog::logger logger("test-callback", {callback_logger, test_sink}); 24 | 25 | logger.info("test message 1"); 26 | logger.info("test message 2"); 27 | logger.info("test message 3"); 28 | 29 | std::vector ref_lines = test_sink->lines(); 30 | 31 | REQUIRE(lines[0] == ref_lines[0]); 32 | REQUIRE(lines[1] == ref_lines[1]); 33 | REQUIRE(lines[2] == ref_lines[2]); 34 | spdlog::drop_all(); 35 | } 36 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/bench/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT) 2 | 3 | cmake_minimum_required(VERSION 3.11) 4 | project(spdlog_bench CXX) 5 | 6 | if(NOT TARGET spdlog) 7 | # Stand-alone build 8 | find_package(spdlog CONFIG REQUIRED) 9 | endif() 10 | 11 | find_package(Threads REQUIRED) 12 | find_package(benchmark CONFIG) 13 | if(NOT benchmark_FOUND) 14 | message(STATUS "Using CMake Version ${CMAKE_VERSION}") 15 | # User can fetch googlebenchmark 16 | message(STATUS "Downloading GoogleBenchmark") 17 | include(FetchContent) 18 | 19 | # disable tests 20 | set(BENCHMARK_ENABLE_TESTING OFF CACHE INTERNAL "") 21 | # Do not build and run googlebenchmark tests 22 | FetchContent_Declare(googlebenchmark GIT_REPOSITORY https://github.com/google/benchmark.git GIT_TAG v1.6.0) 23 | FetchContent_MakeAvailable(googlebenchmark) 24 | endif() 25 | 26 | add_executable(bench bench.cpp) 27 | spdlog_enable_warnings(bench) 28 | target_link_libraries(bench PRIVATE spdlog::spdlog) 29 | 30 | add_executable(async_bench async_bench.cpp) 31 | target_link_libraries(async_bench PRIVATE spdlog::spdlog) 32 | 33 | add_executable(latency latency.cpp) 34 | target_link_libraries(latency PRIVATE benchmark::benchmark spdlog::spdlog) 35 | 36 | add_executable(formatter-bench formatter-bench.cpp) 37 | target_link_libraries(formatter-bench PRIVATE benchmark::benchmark spdlog::spdlog) 38 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/excep/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## 3 | ## Makefile for Detours Test Programs. 4 | ## 5 | ## Microsoft Research Detours Package 6 | ## 7 | ## Copyright (c) Microsoft Corporation. All rights reserved. 8 | ## 9 | 10 | !include ..\common.mak 11 | 12 | LIBS=$(LIBS) kernel32.lib 13 | 14 | all: dirs \ 15 | $(BIND)\excep.exe \ 16 | !IF $(DETOURS_SOURCE_BROWSING)==1 17 | $(OBJD)\excep.bsc 18 | !ENDIF 19 | 20 | clean: 21 | -del *~ 2>nul 22 | -del $(BIND)\excep.* 2>nul 23 | -rmdir /q /s $(OBJD) 2>nul 24 | 25 | realclean: clean 26 | -rmdir /q /s $(OBJDS) 2>nul 27 | 28 | dirs: 29 | @if not exist $(BIND) mkdir $(BIND) && echo. Created $(BIND) 30 | @if not exist $(OBJD) mkdir $(OBJD) && echo. Created $(OBJD) 31 | 32 | $(OBJD)\excep.obj : excep.cpp 33 | $(OBJD)\firstexc.obj : firstexc.cpp 34 | 35 | $(BIND)\excep.exe : $(OBJD)\excep.obj $(OBJD)\firstexc.obj $(DEPS) 36 | cl $(CFLAGS) /Fe$@ /Fd$(@R).pdb $(OBJD)\excep.obj $(OBJD)\firstexc.obj \ 37 | /link $(LINKFLAGS) $(LIBS) /subsystem:console /entry:WinMainCRTStartup 38 | 39 | $(OBJD)\excep.bsc : $(OBJD)\excep.obj 40 | bscmake /v /n /o $@ $(OBJD)\excep.sbr 41 | 42 | ############################################################################## 43 | 44 | test: $(BIND)\excep.exe 45 | $(BIND)\excep.exe 46 | 47 | ################################################################# End of File. 48 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/src/static.c: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | Copyright (c) 2018-2020, Microsoft Research, Daan Leijen 3 | This is free software; you can redistribute it and/or modify it under the 4 | terms of the MIT license. A copy of the license can be found in the file 5 | "LICENSE" at the root of this distribution. 6 | -----------------------------------------------------------------------------*/ 7 | #ifndef _DEFAULT_SOURCE 8 | #define _DEFAULT_SOURCE 9 | #endif 10 | #if defined(__sun) 11 | // same remarks as os.c for the static's context. 12 | #undef _XOPEN_SOURCE 13 | #undef _POSIX_C_SOURCE 14 | #endif 15 | 16 | #include "mimalloc.h" 17 | #include "mimalloc/internal.h" 18 | 19 | // For a static override we create a single object file 20 | // containing the whole library. If it is linked first 21 | // it will override all the standard library allocation 22 | // functions (on Unix's). 23 | #include "alloc.c" // includes alloc-override.c 24 | #include "alloc-aligned.c" 25 | #include "alloc-posix.c" 26 | #include "arena.c" 27 | #include "bitmap.c" 28 | #include "heap.c" 29 | #include "init.c" 30 | #include "libc.c" 31 | #include "options.c" 32 | #include "os.c" 33 | #include "page.c" // includes page-queue.c 34 | #include "random.c" 35 | #include "segment.c" 36 | #include "segment-map.c" 37 | #include "stats.c" 38 | #include "prim/prim.c" 39 | #if MI_OSX_ZONE 40 | #include "prim/osx/alloc-override-zone.c" 41 | #endif 42 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/.gitignore: -------------------------------------------------------------------------------- 1 | # Auto generated files 2 | [Dd]ebug/ 3 | [Rr]elease/ 4 | build/* 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | *.suo 10 | *.tlog 11 | *.ilk 12 | *.log 13 | *.pdb 14 | *.idb 15 | *.iobj 16 | *.ipdb 17 | *.opensdf 18 | *.sdf 19 | 20 | # Compiled Dynamic libraries 21 | *.so 22 | *.dylib 23 | *.dll 24 | 25 | # Compiled Static libraries 26 | *.lai 27 | *.la 28 | *.a 29 | *.lib 30 | 31 | # Executables 32 | *.exe 33 | *.out 34 | *.app 35 | 36 | # Codelite 37 | .codelite 38 | 39 | # KDevelop 40 | *.kdev4 41 | 42 | # .orig files 43 | *.orig 44 | 45 | # example files 46 | example/* 47 | !example/example.cpp 48 | !example/bench.cpp 49 | !example/utils.h 50 | !example/Makefile* 51 | !example/example.sln 52 | !example/example.vcxproj 53 | !example/CMakeLists.txt 54 | !example/meson.build 55 | !example/multisink.cpp 56 | !example/jni 57 | 58 | # generated files 59 | generated 60 | version.rc 61 | 62 | # Cmake 63 | CMakeCache.txt 64 | CMakeFiles 65 | CMakeScripts 66 | Makefile 67 | cmake_install.cmake 68 | install_manifest.txt 69 | /tests/tests.VC.VC.opendb 70 | /tests/tests.VC.db 71 | /tests/tests 72 | /tests/logs/* 73 | spdlogConfig.cmake 74 | spdlogConfigVersion.cmake 75 | compile_commands.json 76 | 77 | # idea 78 | .idea/ 79 | .cache/ 80 | .vscode/ 81 | cmake-build-*/ 82 | *.db 83 | *.ipch 84 | *.filters 85 | *.db-wal 86 | *.opendb 87 | *.db-shm 88 | *.vcxproj 89 | *.tcl 90 | *.user 91 | *.sln 92 | 93 | # macos 94 | *.DS_store 95 | *.xcodeproj/ 96 | /.vs 97 | /out/build 98 | /CMakeSettings.json 99 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/macro_unscope.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | // restore clang diagnostic settings 12 | #if defined(__clang__) 13 | #pragma clang diagnostic pop 14 | #endif 15 | 16 | // clean up 17 | #undef JSON_ASSERT 18 | #undef JSON_INTERNAL_CATCH 19 | #undef JSON_THROW 20 | #undef JSON_PRIVATE_UNLESS_TESTED 21 | #undef NLOHMANN_BASIC_JSON_TPL_DECLARATION 22 | #undef NLOHMANN_BASIC_JSON_TPL 23 | #undef JSON_EXPLICIT 24 | #undef NLOHMANN_CAN_CALL_STD_FUNC_IMPL 25 | #undef JSON_INLINE_VARIABLE 26 | #undef JSON_NO_UNIQUE_ADDRESS 27 | #undef JSON_DISABLE_ENUM_SERIALIZATION 28 | #undef JSON_USE_GLOBAL_UDLS 29 | 30 | #ifndef JSON_TEST_KEEP_MACROS 31 | #undef JSON_CATCH 32 | #undef JSON_TRY 33 | #undef JSON_HAS_CPP_11 34 | #undef JSON_HAS_CPP_14 35 | #undef JSON_HAS_CPP_17 36 | #undef JSON_HAS_CPP_20 37 | #undef JSON_HAS_CPP_23 38 | #undef JSON_HAS_FILESYSTEM 39 | #undef JSON_HAS_EXPERIMENTAL_FILESYSTEM 40 | #undef JSON_HAS_THREE_WAY_COMPARISON 41 | #undef JSON_HAS_RANGES 42 | #undef JSON_HAS_STATIC_RTTI 43 | #undef JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON 44 | #endif 45 | 46 | #include 47 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/fmt/bundled/fmt.license.rst: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012 - present, Victor Zverovich 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | 22 | --- Optional exception to the license --- 23 | 24 | As an exception, if, as a result of your compiling your source code, portions 25 | of this Software are embedded into a machine-executable object form of such 26 | source code, you may redistribute such embedded portions in such object form 27 | without including the above copyright and permission notices. 28 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/einst/edll1x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (edll1x.cpp of edll1x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | #include 10 | #include 11 | #include 12 | 13 | //////////////////////////////////////////////////////////////////// DLL Stuff 14 | // 15 | struct CPrivateStuff 16 | { 17 | DETOUR_SECTION_HEADER header; 18 | DETOUR_SECTION_RECORD record; 19 | CHAR szMessage[32]; 20 | }; 21 | 22 | #pragma data_seg(".detour") 23 | 24 | static CPrivateStuff private_stuff = { 25 | DETOUR_SECTION_HEADER_DECLARE(sizeof(CPrivateStuff)), 26 | { 27 | (sizeof(CPrivateStuff) - sizeof(DETOUR_SECTION_HEADER)), 28 | 0, 29 | { /* d9ab8a40-f4cc-11d1-b6d7-006097b010e3 */ 30 | 0xd9ab8a40, 31 | 0xf4cc, 32 | 0x11d1, 33 | {0xb6, 0xd7, 0x00, 0x60, 0x97, 0xb0, 0x10, 0xe3} 34 | } 35 | }, 36 | "The First Dll!" 37 | }; 38 | #pragma data_seg() 39 | 40 | __declspec(dllexport) VOID WINAPI EDll1Function(VOID) 41 | { 42 | return; 43 | } 44 | 45 | __declspec(dllexport) ULONG WINAPI 46 | DllMain(HINSTANCE hInstance, DWORD dwReason, PVOID lpReserved) 47 | { 48 | (void)hInstance; 49 | (void)dwReason; 50 | (void)lpReserved; 51 | 52 | return TRUE; 53 | } 54 | 55 | ///////////////////////////////////////////////////////////////// End of File. 56 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/dumpe/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## 3 | ## Makefile for Detours Test Programs. 4 | ## 5 | ## Microsoft Research Detours Package 6 | ## 7 | ## Copyright (c) Microsoft Corporation. All rights reserved. 8 | ## 9 | 10 | !include ..\common.mak 11 | 12 | LIBS=$(LIBS) kernel32.lib 13 | 14 | all: dirs \ 15 | $(BIND)\dumpe.exe \ 16 | !IF $(DETOURS_SOURCE_BROWSING)==1 17 | $(OBJD)\dumpe.bsc 18 | !ENDIF 19 | 20 | clean: 21 | -del *~ 2>nul 22 | -del $(BIND)\dumpe.* 2>nul 23 | -rmdir /q /s $(OBJD) 2>nul 24 | 25 | realclean: clean 26 | -rmdir /q /s $(OBJDS) 2>nul 27 | 28 | dirs: 29 | @if not exist $(BIND) mkdir $(BIND) && echo. Created $(BIND) 30 | @if not exist $(OBJD) mkdir $(OBJD) && echo. Created $(OBJD) 31 | 32 | $(OBJD)\dumpe.obj : dumpe.cpp 33 | 34 | $(BIND)\dumpe.exe : $(OBJD)\dumpe.obj $(DEPS) 35 | cl $(CFLAGS) /Fe$@ /Fd$(@R).pdb $(OBJD)\dumpe.obj \ 36 | /link $(LINKFLAGS) $(LIBS) \ 37 | /subsystem:console 38 | 39 | $(OBJD)\dumpe.bsc : $(OBJD)\dumpe.obj 40 | bscmake /v /n /o $@ $(OBJD)\dumpe.sbr 41 | 42 | ############################################################################## 43 | 44 | test: $(BIND)\dumpe.exe 45 | $(BIND)\dumpe.exe $(BIND)\slept.dll 46 | 47 | testx: $(BIND)\dumpe.exe 48 | cd $(MAKEDIR)\..\..\src 49 | nmake 50 | cd $(MAKEDIR) 51 | if exist $(SYSTEMROOT)\system32\browseui.dll $(BIND)\dumpe.exe browseui.dll 52 | 53 | ################################################################# End of File. 54 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/einst/edll2x.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (edll2x.cpp of einst.exe/edll2x.dll) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | #include 10 | #include 11 | #include 12 | 13 | //////////////////////////////////////////////////////////////////// DLL Stuff 14 | // 15 | struct CPrivateStuff 16 | { 17 | DETOUR_SECTION_HEADER header; 18 | DETOUR_SECTION_RECORD record; 19 | CHAR szMessage[32]; 20 | }; 21 | 22 | #pragma data_seg(".detour") 23 | 24 | static CPrivateStuff private_stuff = { 25 | DETOUR_SECTION_HEADER_DECLARE(sizeof(CPrivateStuff)), 26 | { 27 | (sizeof(CPrivateStuff) - sizeof(DETOUR_SECTION_HEADER)), 28 | 0, 29 | { /* d9ab8a40-f4cc-11d1-b6d7-006097b010e3 */ 30 | 0xd9ab8a40, 31 | 0xf4cc, 32 | 0x11d1, 33 | {0xb6, 0xd7, 0x00, 0x60, 0x97, 0xb0, 0x10, 0xe3} 34 | } 35 | }, 36 | "The Second Dll!" 37 | }; 38 | #pragma data_seg() 39 | 40 | __declspec(dllexport) VOID WINAPI EDll2Function(VOID) 41 | { 42 | return; 43 | } 44 | 45 | __declspec(dllexport) ULONG WINAPI 46 | DllMain(HINSTANCE hInstance, DWORD dwReason, PVOID lpReserved) 47 | { 48 | (void)hInstance; 49 | (void)dwReason; 50 | (void)lpReserved; 51 | 52 | return TRUE; 53 | } 54 | 55 | ///////////////////////////////////////////////////////////////// End of File. 56 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/tests/test_time_point.cpp: -------------------------------------------------------------------------------- 1 | #include "includes.h" 2 | #include "test_sink.h" 3 | #include "spdlog/async.h" 4 | 5 | TEST_CASE("time_point1", "[time_point log_msg]") { 6 | std::shared_ptr test_sink(new spdlog::sinks::test_sink_st); 7 | spdlog::logger logger("test-time_point", test_sink); 8 | 9 | spdlog::source_loc source{}; 10 | std::chrono::system_clock::time_point tp{std::chrono::system_clock::now()}; 11 | test_sink->set_pattern("%T.%F"); // interested in the time_point 12 | 13 | // all the following should have the same time 14 | test_sink->set_delay(std::chrono::milliseconds(10)); 15 | for (int i = 0; i < 5; i++) { 16 | spdlog::details::log_msg msg{tp, source, "test_logger", spdlog::level::info, "message"}; 17 | test_sink->log(msg); 18 | } 19 | 20 | logger.log(tp, source, spdlog::level::info, "formatted message"); 21 | logger.log(tp, source, spdlog::level::info, "formatted message"); 22 | logger.log(tp, source, spdlog::level::info, "formatted message"); 23 | logger.log(tp, source, spdlog::level::info, "formatted message"); 24 | logger.log(source, spdlog::level::info, 25 | "formatted message"); // last line has different time_point 26 | 27 | // now the real test... that the times are the same. 28 | std::vector lines = test_sink->lines(); 29 | REQUIRE(lines[0] == lines[1]); 30 | REQUIRE(lines[2] == lines[3]); 31 | REQUIRE(lines[4] == lines[5]); 32 | REQUIRE(lines[6] == lines[7]); 33 | REQUIRE(lines[8] != lines[9]); 34 | spdlog::drop_all(); 35 | } 36 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/log_msg-inl.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #ifndef SPDLOG_HEADER_ONLY 7 | #include 8 | #endif 9 | 10 | #include 11 | 12 | namespace spdlog { 13 | namespace details { 14 | 15 | SPDLOG_INLINE log_msg::log_msg(spdlog::log_clock::time_point log_time, 16 | spdlog::source_loc loc, 17 | string_view_t a_logger_name, 18 | spdlog::level::level_enum lvl, 19 | spdlog::string_view_t msg) 20 | : logger_name(a_logger_name), 21 | level(lvl), 22 | time(log_time) 23 | #ifndef SPDLOG_NO_THREAD_ID 24 | , 25 | thread_id(os::thread_id()) 26 | #endif 27 | , 28 | source(loc), 29 | payload(msg) { 30 | } 31 | 32 | SPDLOG_INLINE log_msg::log_msg(spdlog::source_loc loc, 33 | string_view_t a_logger_name, 34 | spdlog::level::level_enum lvl, 35 | spdlog::string_view_t msg) 36 | : log_msg(os::now(), loc, a_logger_name, lvl, msg) {} 37 | 38 | SPDLOG_INLINE log_msg::log_msg(string_view_t a_logger_name, 39 | spdlog::level::level_enum lvl, 40 | spdlog::string_view_t msg) 41 | : log_msg(os::now(), source_loc{}, a_logger_name, lvl, msg) {} 42 | 43 | } // namespace details 44 | } // namespace spdlog 45 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #ifndef SPDLOG_HEADER_ONLY 7 | #include 8 | #endif 9 | 10 | #include 11 | #include 12 | 13 | namespace spdlog { 14 | 15 | template 16 | SPDLOG_INLINE std::shared_ptr stdout_color_mt(const std::string &logger_name, 17 | color_mode mode) { 18 | return Factory::template create(logger_name, mode); 19 | } 20 | 21 | template 22 | SPDLOG_INLINE std::shared_ptr stdout_color_st(const std::string &logger_name, 23 | color_mode mode) { 24 | return Factory::template create(logger_name, mode); 25 | } 26 | 27 | template 28 | SPDLOG_INLINE std::shared_ptr stderr_color_mt(const std::string &logger_name, 29 | color_mode mode) { 30 | return Factory::template create(logger_name, mode); 31 | } 32 | 33 | template 34 | SPDLOG_INLINE std::shared_ptr stderr_color_st(const std::string &logger_name, 35 | color_mode mode) { 36 | return Factory::template create(logger_name, mode); 37 | } 38 | } // namespace spdlog 39 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/tests/test_stopwatch.cpp: -------------------------------------------------------------------------------- 1 | #include "includes.h" 2 | #include "test_sink.h" 3 | #include "spdlog/stopwatch.h" 4 | 5 | TEST_CASE("stopwatch1", "[stopwatch]") { 6 | using std::chrono::milliseconds; 7 | using clock = std::chrono::steady_clock; 8 | milliseconds wait_ms(200); 9 | milliseconds tolerance_ms(250); 10 | auto start = clock::now(); 11 | spdlog::stopwatch sw; 12 | std::this_thread::sleep_for(wait_ms); 13 | auto stop = clock::now(); 14 | auto diff_ms = std::chrono::duration_cast(stop - start); 15 | REQUIRE(sw.elapsed() >= diff_ms); 16 | REQUIRE(sw.elapsed() <= diff_ms + tolerance_ms); 17 | } 18 | 19 | TEST_CASE("stopwatch2", "[stopwatch]") { 20 | using spdlog::sinks::test_sink_st; 21 | using std::chrono::duration_cast; 22 | using std::chrono::milliseconds; 23 | using clock = std::chrono::steady_clock; 24 | 25 | clock::duration wait_duration(milliseconds(200)); 26 | clock::duration tolerance_duration(milliseconds(250)); 27 | 28 | auto test_sink = std::make_shared(); 29 | 30 | auto start = clock::now(); 31 | spdlog::stopwatch sw; 32 | spdlog::logger logger("test-stopwatch", test_sink); 33 | logger.set_pattern("%v"); 34 | std::this_thread::sleep_for(wait_duration); 35 | auto stop = clock::now(); 36 | logger.info("{}", sw); 37 | auto val = std::stod(test_sink->lines()[0]); 38 | auto diff_duration = duration_cast>(stop - start); 39 | 40 | REQUIRE(val >= (diff_duration).count() - 0.001); 41 | REQUIRE(val <= (diff_duration + tolerance_duration).count()); 42 | } 43 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/tryman/managed.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyProduct("Microsoft Research Detours")] 6 | [assembly: AssemblyCompany("Microsoft Corporation")] 7 | [assembly: AssemblyVersion("1.0.0.0")] 8 | 9 | public class Test 10 | { 11 | // [DllImport("kernel32.dll", CharSet=CharSet.Auto, SetLastError=true)] 12 | // static extern IntPtr LoadLibrary([In, MarshalAs(UnmanagedType.LPStr)] string lpFileName); 13 | 14 | [DllImport("kernel32", CharSet=CharSet.Auto, SetLastError=true)] 15 | static extern IntPtr LoadLibrary(string lpFileName); 16 | 17 | public static int Main() 18 | { 19 | if (IntPtr.Size == 4) { 20 | Console.WriteLine(" *** Managed code with 32-bit runtime ({0})", 21 | Environment.Version); 22 | } 23 | else if (IntPtr.Size == 8) { 24 | Console.WriteLine(" *** Managed code with 64-bit runtime ({0})", 25 | Environment.Version); 26 | } 27 | else { 28 | Console.WriteLine(" *** Managed code of unknown IntPtr.Size: {0}", IntPtr.Size); 29 | } 30 | 31 | if (IntPtr.Size == 4) { 32 | if (LoadLibrary("tstman32.dll") == (IntPtr)0) { 33 | Console.WriteLine("--------: managed code failed to load tstman32.dll"); 34 | 35 | } 36 | } 37 | else { 38 | if (LoadLibrary("tstman64.dll") == (IntPtr)0) { 39 | Console.WriteLine("--------: managed code failed to load tstman64.dll"); 40 | 41 | } 42 | } 43 | 44 | return 0; 45 | } 46 | } 47 | 48 | 49 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/mdc.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #if defined(SPDLOG_NO_TLS) 7 | #error "This header requires thread local storage support, but SPDLOG_NO_TLS is defined." 8 | #endif 9 | 10 | #include 11 | #include 12 | 13 | #include 14 | 15 | // MDC is a simple map of key->string values stored in thread local storage whose content will be printed by the loggers. 16 | // Note: Not supported in async mode (thread local storage - so the async thread pool have different copy). 17 | // 18 | // Usage example: 19 | // spdlog::mdc::put("mdc_key_1", "mdc_value_1"); 20 | // spdlog::info("Hello, {}", "World!"); // => [2024-04-26 02:08:05.040] [info] [mdc_key_1:mdc_value_1] Hello, World! 21 | 22 | namespace spdlog { 23 | class SPDLOG_API mdc { 24 | public: 25 | using mdc_map_t = std::map; 26 | 27 | static void put(const std::string &key, const std::string &value) { 28 | get_context()[key] = value; 29 | } 30 | 31 | static std::string get(const std::string &key) { 32 | auto &context = get_context(); 33 | auto it = context.find(key); 34 | if (it != context.end()) { 35 | return it->second; 36 | } 37 | return ""; 38 | } 39 | 40 | static void remove(const std::string &key) { get_context().erase(key); } 41 | 42 | static void clear() { get_context().clear(); } 43 | 44 | static mdc_map_t &get_context() { 45 | static thread_local mdc_map_t context; 46 | return context; 47 | } 48 | }; 49 | 50 | } // namespace spdlog 51 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/cping/ReadMe.Txt: -------------------------------------------------------------------------------- 1 | Microsoft Research Detours Package 2 | ============================================================================== 3 | 4/2/98 4 | 5 | * Instrumentation: 6 | Read Pentium cycle counter 7 | 8 | * PC configuration: 9 | DCOM/TCP, Windows NT Server 4.0, 10 | between two 300MHz Pentium boxes, 11 | Ethernet connecction 12 | 13 | * Client test program: 14 | HRESULT get(SHORT, SHORT, LONG*) 15 | average over 1,000 calls 16 | midl /Oicf 17 | 18 | * Results: 19 | get() { 20 | <-- (1) 21 | IRpcChannelBuffer::SendReceive()) { 22 | <-- (2) 23 | I_RpcSendReceive() { 24 | <-- (3) 25 | send(soc, ) 26 | <-- (4) 27 | NtWaitForSingleObject(soc, ) 28 | <-- (5) 29 | } // end of RPC layer 30 | <-- (6) 31 | } // end of channel object 32 | <-- (7) 33 | } // end of client call 34 | Average number 35 | of Pentium cycles 36 | (1) NDR marshaling overhead (2 SHORTs) 13 K 37 | (No! of which 11K from GetBuffer, 38 | of which 6.2K from I_RpcGetBuffer()!) 39 | (2) Channel object one-way (send) overhead 1.0 K 40 | (3) RPC layer one-way (send) overhead 5.3 K 41 | (4) TCP + all server work 200 K 42 | (5) RPC layer one-way (recv) overhead 5.1 K 43 | (6) Channel object one-way (recv) overhead 2.2 K 44 | (7) NDR unmarshaling overhead (2 LONGs) 4.2 K 45 | 46 | (*) send() only 17 K 47 | TOTAL CYCLES for client get(): 230 K 48 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/contrib/vcpkg/readme.md: -------------------------------------------------------------------------------- 1 | # Vcpkg support 2 | 3 | This directory is meant to provide the sources for the official [vcpkg port] 4 | of mimalloc, but can also be used to override the official port with 5 | your own variant. 6 | 7 | For example, you can edit the [`portfile.cmake`](portfile.cmake) 8 | to check out a specific commit, version, or branch of mimalloc, or set further options. 9 | You can install such custom port as: 10 | 11 | ```sh 12 | $ vcpkg install "mimalloc[override]" --recurse --overlay-ports=./contrib/vcpkg 13 | ``` 14 | 15 | This will also show the correct sha512 hash if you use a custom version. 16 | Another way is to refer to the overlay from the [vcpkg-configuration.json](https://learn.microsoft.com/en-us/vcpkg/reference/vcpkg-configuration-json) file. 17 | See also the vcpkg [documentation](https://learn.microsoft.com/en-us/vcpkg/produce/update-package-version) for more information. 18 | 19 | 20 | # Using mimalloc from vcpkg 21 | 22 | When using [cmake with vcpkg](https://learn.microsoft.com/en-us/vcpkg/get_started/get-started?pivots=shell-powershell), 23 | you can use mimalloc from the `CMakeLists.txt` as: 24 | 25 | ```cmake 26 | find_package(mimalloc CONFIG REQUIRED) 27 | target_link_libraries(main PRIVATE mimalloc) 28 | ``` 29 | 30 | See [`test/CMakeLists.txt](../../test/CMakeLists.txt) for more examples. 31 | 32 | 33 | # Acknowledgements 34 | 35 | The original port for vckpg was contributed by many people, including: @vicroms, @myd7349, @PhoubeHui, @LilyWangL, 36 | @JonLiu1993, @RT2Code, Remy Tassoux, @wangao, @BillyONeal, @jiayuehua, @dg0yt, @gerar-ryan-immersaview, @nickdademo, 37 | and @jimwang118 -- Thank you so much! 38 | 39 | 40 | [vcpkg port]: https://github.com/microsoft/vcpkg/tree/master/ports/mimalloc 41 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/src/bundled_fmtlib_format.cpp: -------------------------------------------------------------------------------- 1 | // Slightly modified version of fmt lib's format.cc source file. 2 | // Copyright (c) 2012 - 2016, Victor Zverovich 3 | // All rights reserved. 4 | 5 | #ifndef SPDLOG_COMPILED_LIB 6 | #error Please define SPDLOG_COMPILED_LIB to compile this file. 7 | #endif 8 | 9 | #if !defined(SPDLOG_FMT_EXTERNAL) && !defined(SPDLOG_USE_STD_FORMAT) 10 | 11 | #include 12 | 13 | FMT_BEGIN_NAMESPACE 14 | namespace detail { 15 | 16 | template FMT_API auto dragonbox::to_decimal(float x) noexcept 17 | -> dragonbox::decimal_fp; 18 | template FMT_API auto dragonbox::to_decimal(double x) noexcept 19 | -> dragonbox::decimal_fp; 20 | 21 | #ifndef FMT_STATIC_THOUSANDS_SEPARATOR 22 | template FMT_API locale_ref::locale_ref(const std::locale& loc); 23 | template FMT_API auto locale_ref::get() const -> std::locale; 24 | #endif 25 | 26 | // Explicit instantiations for char. 27 | 28 | template FMT_API auto thousands_sep_impl(locale_ref) 29 | -> thousands_sep_result; 30 | template FMT_API auto decimal_point_impl(locale_ref) -> char; 31 | 32 | template FMT_API void buffer::append(const char*, const char*); 33 | 34 | template FMT_API void vformat_to(buffer&, string_view, 35 | typename vformat_args<>::type, locale_ref); 36 | 37 | // Explicit instantiations for wchar_t. 38 | 39 | template FMT_API auto thousands_sep_impl(locale_ref) 40 | -> thousands_sep_result; 41 | template FMT_API auto decimal_point_impl(locale_ref) -> wchar_t; 42 | 43 | template FMT_API void buffer::append(const wchar_t*, const wchar_t*); 44 | 45 | } // namespace detail 46 | FMT_END_NAMESPACE 47 | 48 | #endif // !SPDLOG_FMT_EXTERNAL 49 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/comeasy/comeasy.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detour Test Program (comeasy.cpp of comeasy.exe) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | ////////////////////////////////////////////////////////////////////////////// 15 | // 16 | int __cdecl main(int argc, char **argv) 17 | { 18 | HRESULT hr; 19 | 20 | (void)argc; 21 | (void)argv; 22 | 23 | LPSTREAM pStream = NULL; 24 | ULARGE_INTEGER ul; 25 | LARGE_INTEGER li; 26 | 27 | printf("comeasy.exe: Starting (at %p).\n", main); 28 | 29 | CoInitialize(NULL); 30 | 31 | hr = CreateStreamOnHGlobal(NULL, TRUE, &pStream); 32 | 33 | ul.QuadPart = 512; 34 | hr = pStream->SetSize(ul); 35 | 36 | li.QuadPart = 0; 37 | hr = pStream->Seek(li, STREAM_SEEK_SET, NULL); 38 | 39 | printf("comeasy.exe: First write.\n"); 40 | fflush(stdout); 41 | 42 | li.QuadPart = 0; 43 | hr = pStream->Write(&ul, sizeof(ul), NULL); 44 | 45 | printf("comeasy.exe: Second write.\n"); 46 | fflush(stdout); 47 | 48 | li.QuadPart = 1; 49 | hr = pStream->Write(&li, sizeof(li), NULL); 50 | 51 | printf("comeasy.exe: Third write.\n"); 52 | fflush(stdout); 53 | 54 | li.QuadPart = 2; 55 | hr = pStream->Write(&li, sizeof(li), NULL); 56 | 57 | pStream->Release(); 58 | pStream = NULL; 59 | 60 | CoUninitialize(); 61 | 62 | printf("comeasy.exe: Exiting.\n\n"); 63 | fflush(stdout); 64 | 65 | return 0; 66 | } 67 | 68 | // 69 | ///////////////////////////////////////////////////////////////// End of File. 70 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/echo/echofx.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // 4 | #include 5 | #include 6 | #include 7 | 8 | int WINAPI Echo(PCSTR pszMsg); 9 | 10 | static int (WINAPI * Real_Echo)(PCSTR pszMsg) = Echo; 11 | 12 | int WINAPI Mine_Echo(PCSTR pszMsg) 13 | { 14 | printf("Echo(%s)\n", pszMsg); 15 | return Real_Echo(pszMsg); 16 | } 17 | 18 | BOOL WINAPI DllMain(HINSTANCE hinst, DWORD dwReason, LPVOID reserved) 19 | { 20 | LONG error; 21 | (void)hinst; 22 | (void)reserved; 23 | 24 | if (DetourIsHelperProcess()) { 25 | return TRUE; 26 | } 27 | 28 | if (dwReason == DLL_PROCESS_ATTACH) { 29 | DetourRestoreAfterWith(); 30 | 31 | printf("echofx" DETOURS_STRINGIFY(DETOURS_BITS) ".dll:" 32 | " Starting.\n"); 33 | fflush(stdout); 34 | 35 | DetourTransactionBegin(); 36 | DetourUpdateThread(GetCurrentThread()); 37 | DetourAttach(&(PVOID&)Real_Echo, Mine_Echo); 38 | error = DetourTransactionCommit(); 39 | 40 | if (error == NO_ERROR) { 41 | printf("echofx" DETOURS_STRINGIFY(DETOURS_BITS) ".dll:" 42 | " Detoured Echo().\n"); 43 | } 44 | else { 45 | printf("echofx" DETOURS_STRINGIFY(DETOURS_BITS) ".dll:" 46 | " Error detouring Echo(): %d\n", error); 47 | } 48 | } 49 | else if (dwReason == DLL_PROCESS_DETACH) { 50 | DetourTransactionBegin(); 51 | DetourUpdateThread(GetCurrentThread()); 52 | DetourDetach(&(PVOID&)Real_Echo, Mine_Echo); 53 | error = DetourTransactionCommit(); 54 | 55 | printf("echofx" DETOURS_STRINGIFY(DETOURS_BITS) ".dll:" 56 | " Removed Echo() (result=%d)\n", error); 57 | fflush(stdout); 58 | } 59 | return TRUE; 60 | } 61 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/sinks/base_sink.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | // 6 | // base sink templated over a mutex (either dummy or real) 7 | // concrete implementation should override the sink_it_() and flush_() methods. 8 | // locking is taken care of in this class - no locking needed by the 9 | // implementers.. 10 | // 11 | 12 | #include 13 | #include 14 | #include 15 | 16 | namespace spdlog { 17 | namespace sinks { 18 | template 19 | class SPDLOG_API base_sink : public sink { 20 | public: 21 | base_sink(); 22 | explicit base_sink(std::unique_ptr formatter); 23 | ~base_sink() override = default; 24 | 25 | base_sink(const base_sink &) = delete; 26 | base_sink(base_sink &&) = delete; 27 | 28 | base_sink &operator=(const base_sink &) = delete; 29 | base_sink &operator=(base_sink &&) = delete; 30 | 31 | void log(const details::log_msg &msg) final override; 32 | void flush() final override; 33 | void set_pattern(const std::string &pattern) final override; 34 | void set_formatter(std::unique_ptr sink_formatter) final override; 35 | 36 | protected: 37 | // sink formatter 38 | std::unique_ptr formatter_; 39 | Mutex mutex_; 40 | 41 | virtual void sink_it_(const details::log_msg &msg) = 0; 42 | virtual void flush_() = 0; 43 | virtual void set_pattern_(const std::string &pattern); 44 | virtual void set_formatter_(std::unique_ptr sink_formatter); 45 | }; 46 | } // namespace sinks 47 | } // namespace spdlog 48 | 49 | #ifdef SPDLOG_HEADER_ONLY 50 | #include "base_sink-inl.h" 51 | #endif 52 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/mimalloc-dev/test/testhelper.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | Copyright (c) 2018-2020, Microsoft Research, Daan Leijen 3 | This is free software; you can redistribute it and/or modify it under the 4 | terms of the MIT license. A copy of the license can be found in the file 5 | "LICENSE" at the root of this distribution. 6 | -----------------------------------------------------------------------------*/ 7 | #ifndef TESTHELPER_H_ 8 | #define TESTHELPER_H_ 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | // --------------------------------------------------------------------------- 15 | // Test macros: CHECK(name,predicate) and CHECK_BODY(name,body) 16 | // --------------------------------------------------------------------------- 17 | static int ok = 0; 18 | static int failed = 0; 19 | 20 | static bool check_result(bool result, const char* testname, const char* fname, long lineno) { 21 | if (!(result)) { 22 | failed++; 23 | fprintf(stderr,"\n FAILED: %s: %s:%ld\n", testname, fname, lineno); 24 | /* exit(1); */ 25 | } 26 | else { 27 | ok++; 28 | fprintf(stderr, "ok.\n"); 29 | } 30 | return true; 31 | } 32 | 33 | #define CHECK_BODY(name) \ 34 | fprintf(stderr,"test: %s... ", name ); \ 35 | errno = 0; \ 36 | for(bool done = false, result = true; !done; done = check_result(result,name,__FILE__,__LINE__)) 37 | 38 | #define CHECK(name,expr) CHECK_BODY(name){ result = (expr); } 39 | 40 | // Print summary of test. Return value can be directly use as a return value for main(). 41 | static inline int print_test_summary(void) 42 | { 43 | fprintf(stderr,"\n\n---------------------------------------------\n" 44 | "succeeded: %i\n" 45 | "failed : %i\n\n", ok, failed); 46 | return failed; 47 | } 48 | 49 | #endif // TESTHELPER_H_ 50 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/tracebld/tracebld.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detours Test Program (tracebld.h of tracebld.exe) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | #pragma once 10 | #ifndef _TRACEBLD_H_ 11 | #define _TRACEBLD_H_ 12 | #include 13 | 14 | ////////////////////////////////////////////////////////////////////////////// 15 | // 16 | // 17 | #define TBLOG_PIPE_NAMEA "\\\\.\\pipe\\tracebuild" 18 | #define TBLOG_PIPE_NAMEW L"\\\\.\\pipe\\tracebuild" 19 | #ifdef UNICODE 20 | #define TBLOG_PIPE_NAME TBLOG_PIPE_NAMEW 21 | #else 22 | #define TBLOG_PIPE_NAME TBLOG_PIPE_NAMEA 23 | #endif 24 | 25 | ////////////////////////////////////////////////////////////////////////////// 26 | // 27 | typedef struct _TBLOG_MESSAGE 28 | { 29 | DWORD nBytes; 30 | CHAR szMessage[32764]; // 32768 - sizeof(nBytes) 31 | } TBLOG_MESSAGE, *PTBLOG_MESSAGE; 32 | 33 | typedef struct _TBLOG_PAYLOAD 34 | { 35 | DWORD nParentProcessId; 36 | DWORD nTraceProcessId; 37 | DWORD nGeneology; 38 | DWORD rGeneology[64]; 39 | WCHAR wzParents[256]; 40 | WCHAR wzStdin[256]; 41 | WCHAR wzStdout[256]; 42 | WCHAR wzStderr[256]; 43 | BOOL fStdoutAppend; 44 | BOOL fStderrAppend; 45 | WCHAR wzzDrop[1024]; // Like an environment: zero terminated strings with a last zero. 46 | WCHAR wzzEnvironment[32768]; 47 | } TBLOG_PAYLOAD, *PTBLOG_PAYLOAD; 48 | 49 | // Shared state payload guid. 50 | // 51 | const GUID s_guidTrace = { 52 | 0xd8e2dc69, 0x3004, 0x453e, 53 | {0x94, 0x15, 0x19, 0x0e, 0x79, 0xe8, 0x93, 0x52} 54 | }; 55 | 56 | 57 | #endif // _TRACEBLD_H_ 58 | // 59 | ///////////////////////////////////////////////////////////////// End of File. 60 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/log_msg_buffer-inl.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #ifndef SPDLOG_HEADER_ONLY 7 | #include 8 | #endif 9 | 10 | namespace spdlog { 11 | namespace details { 12 | 13 | SPDLOG_INLINE log_msg_buffer::log_msg_buffer(const log_msg &orig_msg) 14 | : log_msg{orig_msg} { 15 | buffer.append(logger_name.begin(), logger_name.end()); 16 | buffer.append(payload.begin(), payload.end()); 17 | update_string_views(); 18 | } 19 | 20 | SPDLOG_INLINE log_msg_buffer::log_msg_buffer(const log_msg_buffer &other) 21 | : log_msg{other} { 22 | buffer.append(logger_name.begin(), logger_name.end()); 23 | buffer.append(payload.begin(), payload.end()); 24 | update_string_views(); 25 | } 26 | 27 | SPDLOG_INLINE log_msg_buffer::log_msg_buffer(log_msg_buffer &&other) SPDLOG_NOEXCEPT 28 | : log_msg{other}, 29 | buffer{std::move(other.buffer)} { 30 | update_string_views(); 31 | } 32 | 33 | SPDLOG_INLINE log_msg_buffer &log_msg_buffer::operator=(const log_msg_buffer &other) { 34 | log_msg::operator=(other); 35 | buffer.clear(); 36 | buffer.append(other.buffer.data(), other.buffer.data() + other.buffer.size()); 37 | update_string_views(); 38 | return *this; 39 | } 40 | 41 | SPDLOG_INLINE log_msg_buffer &log_msg_buffer::operator=(log_msg_buffer &&other) SPDLOG_NOEXCEPT { 42 | log_msg::operator=(other); 43 | buffer = std::move(other.buffer); 44 | update_string_views(); 45 | return *this; 46 | } 47 | 48 | SPDLOG_INLINE void log_msg_buffer::update_string_views() { 49 | logger_name = string_view_t{buffer.data(), logger_name.size()}; 50 | payload = string_view_t{buffer.data() + logger_name.size(), payload.size()}; 51 | } 52 | 53 | } // namespace details 54 | } // namespace spdlog 55 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/withdll/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## 3 | ## Makefile for Detours Test Programs. 4 | ## 5 | ## Microsoft Research Detours Package 6 | ## 7 | ## Copyright (c) Microsoft Corporation. All rights reserved. 8 | ## 9 | 10 | !include ..\common.mak 11 | 12 | LIBS=$(LIBS) kernel32.lib 13 | 14 | ############################################################################## 15 | 16 | all: dirs \ 17 | $(BIND)\withdll.exe \ 18 | !IF $(DETOURS_SOURCE_BROWSING)==1 19 | $(OBJD)\withdll.bsc \ 20 | !ENDIF 21 | option 22 | 23 | clean: 24 | -del *~ 2>nul 25 | -del $(BIND)\withdll.* 2>nul 26 | -rmdir /q /s $(OBJD) 2>nul 27 | 28 | realclean: clean 29 | -rmdir /q /s $(OBJDS) 2>nul 30 | 31 | ############################################################################## 32 | 33 | dirs: 34 | @if not exist $(BIND) mkdir $(BIND) && echo. Created $(BIND) 35 | @if not exist $(OBJD) mkdir $(OBJD) && echo. Created $(OBJD) 36 | 37 | $(OBJD)\withdll.obj : withdll.cpp 38 | 39 | $(BIND)\withdll.exe : $(OBJD)\withdll.obj $(DEPS) 40 | cl $(CFLAGS) /Fe$@ /Fd$(@R).pdb $(OBJD)\withdll.obj \ 41 | /link $(LINKFLAGS) $(LIBS) /subsystem:console 42 | 43 | $(OBJD)\withdll.bsc : $(OBJD)\withdll.obj 44 | bscmake /v /n /o $@ $(OBJD)\withdll.sbr 45 | 46 | ############################################### Install non-bit-size binaries. 47 | 48 | option: 49 | 50 | ############################################################################## 51 | 52 | test: all 53 | $(BIND)\withdll.exe -d:$(BIND)\slept$(DETOURS_BITS).dll $(BIND)\sleepold.exe 54 | $(BIND)\withdll.exe -v -d:$(BIND)\slept$(DETOURS_BITS).dll $(BIND)\sleepold.exe 55 | 56 | debug: all 57 | windbg -c ".srcfix;l+s;l+t" -o \ 58 | $(BIND)\withdll.exe -d:$(BIND)\slept$(DETOURS_BITS).dll $(BIND)\sleepold.exe 59 | 60 | ################################################################# End of File. 61 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/.clang-tidy: -------------------------------------------------------------------------------- 1 | Checks: 'cppcoreguidelines-*, 2 | performance-*, 3 | modernize-*, 4 | google-*, 5 | misc-* 6 | cert-*, 7 | readability-*, 8 | clang-analyzer-*, 9 | -performance-unnecessary-value-param, 10 | -modernize-use-trailing-return-type, 11 | -google-runtime-references, 12 | -misc-non-private-member-variables-in-classes, 13 | -readability-braces-around-statements, 14 | -google-readability-braces-around-statements, 15 | -cppcoreguidelines-avoid-magic-numbers, 16 | -readability-magic-numbers, 17 | -readability-magic-numbers, 18 | -cppcoreguidelines-pro-type-vararg, 19 | -cppcoreguidelines-pro-bounds-pointer-arithmetic, 20 | -cppcoreguidelines-avoid-c-arrays, 21 | -modernize-avoid-c-arrays, 22 | -cppcoreguidelines-pro-bounds-array-to-pointer-decay, 23 | -readability-named-parameter, 24 | -cert-env33-c 25 | ' 26 | 27 | 28 | WarningsAsErrors: '' 29 | HeaderFilterRegex: '*spdlog/[^f].*' 30 | FormatStyle: none 31 | 32 | CheckOptions: 33 | - key: google-readability-braces-around-statements.ShortStatementLines 34 | value: '1' 35 | - key: google-readability-function-size.StatementThreshold 36 | value: '800' 37 | - key: google-readability-namespace-comments.ShortNamespaceLines 38 | value: '10' 39 | - key: google-readability-namespace-comments.SpacesBeforeComments 40 | value: '2' 41 | - key: modernize-loop-convert.MaxCopySize 42 | value: '16' 43 | - key: modernize-loop-convert.MinConfidence 44 | value: reasonable 45 | - key: modernize-loop-convert.NamingStyle 46 | value: CamelCase 47 | - key: modernize-pass-by-value.IncludeStyle 48 | value: llvm 49 | - key: modernize-replace-auto-ptr.IncludeStyle 50 | value: llvm 51 | - key: modernize-use-nullptr.NullMacros 52 | value: 'NULL' 53 | 54 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/impmunge/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## 3 | ## Makefile for Detours Test Programs. 4 | ## 5 | ## Microsoft Research Detours Package 6 | ## 7 | ## Copyright (c) Microsoft Corporation. All rights reserved. 8 | ## 9 | 10 | !include ..\common.mak 11 | 12 | LIBS=$(LIBS) kernel32.lib 13 | 14 | all: dirs \ 15 | $(BIND)\impmunge.exe \ 16 | !IF $(DETOURS_SOURCE_BROWSING)==1 17 | $(OBJD)\impmunge.bsc 18 | !ENDIF 19 | 20 | ############################################################################## 21 | 22 | clean: 23 | -del *~ test.exe.* 2>nul 24 | -del $(BIND)\impmunge.* 2>nul 25 | -rmdir /q /s $(OBJD) 2>nul 26 | 27 | realclean: clean 28 | -rmdir /q /s $(OBJDS) 2>nul 29 | 30 | ############################################################################## 31 | 32 | dirs: 33 | @if not exist $(BIND) mkdir $(BIND) && echo. Created $(BIND) 34 | @if not exist $(OBJD) mkdir $(OBJD) && echo. Created $(OBJD) 35 | 36 | $(OBJD)\impmunge.obj : impmunge.cpp 37 | 38 | $(BIND)\impmunge.exe : $(OBJD)\impmunge.obj $(DEPS) 39 | cl $(CFLAGS) /Fe$@ /Fd$(@R).pdb $(OBJD)\impmunge.obj \ 40 | /link $(LINKFLAGS) $(LIBS) imagehlp.lib /subsystem:console 41 | 42 | $(OBJD)\impmunge.bsc : $(OBJD)\impmunge.obj 43 | bscmake /v /n /o $@ $(OBJD)\impmunge.sbr 44 | 45 | ############################################################################## 46 | 47 | test: $(BIND)\impmunge.exe 48 | $(BIND)\impmunge.exe /m /o:test.exe.1 $(BIND)\impmunge.exe 49 | $(BIND)\impmunge.exe /m /l- /o:test.exe.2 test.exe.1 50 | $(BIND)\impmunge.exe /m /l- /o:test.exe.3 test.exe.2 51 | $(BIND)\impmunge.exe /m /l- /o:test.exe.4 test.exe.3 52 | $(BIND)\impmunge.exe /l test.exe.4 53 | $(BIND)\impmunge.exe /r /l- /o:test.exe.0 test.exe.4 54 | $(BIND)\impmunge.exe /l test.exe.0 55 | 56 | ################################################################# End of File. 57 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/sinks/callback_sink.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | #include 11 | #include 12 | 13 | namespace spdlog { 14 | 15 | // callbacks type 16 | typedef std::function custom_log_callback; 17 | 18 | namespace sinks { 19 | /* 20 | * Trivial callback sink, gets a callback function and calls it on each log 21 | */ 22 | template 23 | class callback_sink final : public base_sink { 24 | public: 25 | explicit callback_sink(const custom_log_callback &callback) 26 | : callback_{callback} {} 27 | 28 | protected: 29 | void sink_it_(const details::log_msg &msg) override { callback_(msg); } 30 | void flush_() override{} 31 | 32 | private: 33 | custom_log_callback callback_; 34 | }; 35 | 36 | using callback_sink_mt = callback_sink; 37 | using callback_sink_st = callback_sink; 38 | 39 | } // namespace sinks 40 | 41 | // 42 | // factory functions 43 | // 44 | template 45 | inline std::shared_ptr callback_logger_mt(const std::string &logger_name, 46 | const custom_log_callback &callback) { 47 | return Factory::template create(logger_name, callback); 48 | } 49 | 50 | template 51 | inline std::shared_ptr callback_logger_st(const std::string &logger_name, 52 | const custom_log_callback &callback) { 53 | return Factory::template create(logger_name, callback); 54 | } 55 | 56 | } // namespace spdlog 57 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/Makefile: -------------------------------------------------------------------------------- 1 | ############################################################################## 2 | ## 3 | ## Makefile for Detours. 4 | ## 5 | ## Microsoft Research Detours Package 6 | ## 7 | ## Copyright (c) Microsoft Corporation. All rights reserved. 8 | ## 9 | 10 | ROOT = . 11 | !include "$(ROOT)\system.mak" 12 | 13 | all: 14 | cd "$(MAKEDIR)" 15 | @if exist "$(MAKEDIR)\core\makefile" cd "$(MAKEDIR)\core" && $(MAKE) /NOLOGO /$(MAKEFLAGS) 16 | cd "$(MAKEDIR)\src" 17 | @$(MAKE) /NOLOGO /$(MAKEFLAGS) 18 | cd "$(MAKEDIR)\samples" 19 | @$(MAKE) /NOLOGO /$(MAKEFLAGS) 20 | @if exist "$(MAKEDIR)\bugs\makefile" cd "$(MAKEDIR)\bugs" && $(MAKE) /NOLOGO /$(MAKEFLAGS) 21 | cd "$(MAKEDIR)" 22 | 23 | clean: 24 | cd "$(MAKEDIR)" 25 | @if exist "$(MAKEDIR)\core\makefile" cd "$(MAKEDIR)\core" && $(MAKE) /NOLOGO /$(MAKEFLAGS) clean 26 | cd "$(MAKEDIR)\src" 27 | @$(MAKE) /NOLOGO /$(MAKEFLAGS) clean 28 | cd "$(MAKEDIR)\samples" 29 | @$(MAKE) /NOLOGO /$(MAKEFLAGS) clean 30 | @if exist "$(MAKEDIR)\bugs\makefile" cd "$(MAKEDIR)\bugs" && $(MAKE) /NOLOGO /$(MAKEFLAGS) clean 31 | cd "$(MAKEDIR)" 32 | 33 | realclean: clean 34 | cd "$(MAKEDIR)" 35 | @if exist "$(MAKEDIR)\core\makefile" cd "$(MAKEDIR)\core" && $(MAKE) /NOLOGO /$(MAKEFLAGS) realclean 36 | cd "$(MAKEDIR)\src" 37 | @$(MAKE) /NOLOGO /$(MAKEFLAGS) realclean 38 | cd "$(MAKEDIR)\samples" 39 | @$(MAKE) /NOLOGO /$(MAKEFLAGS) realclean 40 | @if exist "$(MAKEDIR)\bugs\makefile" cd "$(MAKEDIR)\bugs" && $(MAKE) /NOLOGO /$(MAKEFLAGS) realclean 41 | cd "$(MAKEDIR)" 42 | -rmdir /q /s $(INCDS) 2> nul 43 | -rmdir /q /s $(LIBDS) 2> nul 44 | -rmdir /q /s $(BINDS) 2> nul 45 | -rmdir /q /s dist 2> nul 46 | -del docsrc\detours.chm 2> nul 47 | -del /q *.msi 2>nul 48 | -del /q /f /s *~ 2>nul 49 | 50 | test: 51 | cd "$(MAKEDIR)\samples" 52 | @$(MAKE) /NOLOGO /$(MAKEFLAGS) test 53 | cd "$(MAKEDIR)" 54 | 55 | ################################################################# End of File. 56 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/sinks/stdout_color_sinks.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #ifdef _WIN32 7 | #include 8 | #else 9 | #include 10 | #endif 11 | 12 | #include 13 | 14 | namespace spdlog { 15 | namespace sinks { 16 | #ifdef _WIN32 17 | using stdout_color_sink_mt = wincolor_stdout_sink_mt; 18 | using stdout_color_sink_st = wincolor_stdout_sink_st; 19 | using stderr_color_sink_mt = wincolor_stderr_sink_mt; 20 | using stderr_color_sink_st = wincolor_stderr_sink_st; 21 | #else 22 | using stdout_color_sink_mt = ansicolor_stdout_sink_mt; 23 | using stdout_color_sink_st = ansicolor_stdout_sink_st; 24 | using stderr_color_sink_mt = ansicolor_stderr_sink_mt; 25 | using stderr_color_sink_st = ansicolor_stderr_sink_st; 26 | #endif 27 | } // namespace sinks 28 | 29 | template 30 | std::shared_ptr stdout_color_mt(const std::string &logger_name, 31 | color_mode mode = color_mode::automatic); 32 | 33 | template 34 | std::shared_ptr stdout_color_st(const std::string &logger_name, 35 | color_mode mode = color_mode::automatic); 36 | 37 | template 38 | std::shared_ptr stderr_color_mt(const std::string &logger_name, 39 | color_mode mode = color_mode::automatic); 40 | 41 | template 42 | std::shared_ptr stderr_color_st(const std::string &logger_name, 43 | color_mode mode = color_mode::automatic); 44 | 45 | } // namespace spdlog 46 | 47 | #ifdef SPDLOG_HEADER_ONLY 48 | #include "stdout_color_sinks-inl.h" 49 | #endif 50 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/file_helper.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #include 7 | #include 8 | 9 | namespace spdlog { 10 | namespace details { 11 | 12 | // Helper class for file sinks. 13 | // When failing to open a file, retry several times(5) with a delay interval(10 ms). 14 | // Throw spdlog_ex exception on errors. 15 | 16 | class SPDLOG_API file_helper { 17 | public: 18 | file_helper() = default; 19 | explicit file_helper(const file_event_handlers &event_handlers); 20 | 21 | file_helper(const file_helper &) = delete; 22 | file_helper &operator=(const file_helper &) = delete; 23 | ~file_helper(); 24 | 25 | void open(const filename_t &fname, bool truncate = false); 26 | void reopen(bool truncate); 27 | void flush(); 28 | void sync(); 29 | void close(); 30 | void write(const memory_buf_t &buf); 31 | size_t size() const; 32 | const filename_t &filename() const; 33 | 34 | // 35 | // return file path and its extension: 36 | // 37 | // "mylog.txt" => ("mylog", ".txt") 38 | // "mylog" => ("mylog", "") 39 | // "mylog." => ("mylog.", "") 40 | // "/dir1/dir2/mylog.txt" => ("/dir1/dir2/mylog", ".txt") 41 | // 42 | // the starting dot in filenames is ignored (hidden files): 43 | // 44 | // ".mylog" => (".mylog". "") 45 | // "my_folder/.mylog" => ("my_folder/.mylog", "") 46 | // "my_folder/.mylog.txt" => ("my_folder/.mylog", ".txt") 47 | static std::tuple split_by_extension(const filename_t &fname); 48 | 49 | private: 50 | const int open_tries_ = 5; 51 | const unsigned int open_interval_ = 10; 52 | std::FILE *fd_{nullptr}; 53 | filename_t filename_; 54 | file_event_handlers event_handlers_; 55 | }; 56 | } // namespace details 57 | } // namespace spdlog 58 | 59 | #ifdef SPDLOG_HEADER_ONLY 60 | #include "file_helper-inl.h" 61 | #endif 62 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/nlohmann/include/nlohmann/detail/iterators/iterator_traits.hpp: -------------------------------------------------------------------------------- 1 | // __ _____ _____ _____ 2 | // __| | __| | | | JSON for Modern C++ 3 | // | | |__ | | | | | | version 3.12.0 4 | // |_____|_____|_____|_|___| https://github.com/nlohmann/json 5 | // 6 | // SPDX-FileCopyrightText: 2013 - 2025 Niels Lohmann 7 | // SPDX-License-Identifier: MIT 8 | 9 | #pragma once 10 | 11 | #include // random_access_iterator_tag 12 | 13 | #include 14 | #include 15 | #include 16 | 17 | NLOHMANN_JSON_NAMESPACE_BEGIN 18 | namespace detail 19 | { 20 | 21 | template 22 | struct iterator_types {}; 23 | 24 | template 25 | struct iterator_types < 26 | It, 27 | void_t> 29 | { 30 | using difference_type = typename It::difference_type; 31 | using value_type = typename It::value_type; 32 | using pointer = typename It::pointer; 33 | using reference = typename It::reference; 34 | using iterator_category = typename It::iterator_category; 35 | }; 36 | 37 | // This is required as some compilers implement std::iterator_traits in a way that 38 | // doesn't work with SFINAE. See https://github.com/nlohmann/json/issues/1341. 39 | template 40 | struct iterator_traits 41 | { 42 | }; 43 | 44 | template 45 | struct iterator_traits < T, enable_if_t < !std::is_pointer::value >> 46 | : iterator_types 47 | { 48 | }; 49 | 50 | template 51 | struct iterator_traits::value>> 52 | { 53 | using iterator_category = std::random_access_iterator_tag; 54 | using value_type = T; 55 | using difference_type = ptrdiff_t; 56 | using pointer = T*; 57 | using reference = T&; 58 | }; 59 | 60 | } // namespace detail 61 | NLOHMANN_JSON_NAMESPACE_END 62 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/tests/test_macros.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * This content is released under the MIT License as specified in 3 | * https://raw.githubusercontent.com/gabime/spdlog/master/LICENSE 4 | */ 5 | 6 | #include "includes.h" 7 | 8 | #if SPDLOG_ACTIVE_LEVEL != SPDLOG_LEVEL_DEBUG 9 | #error "Invalid SPDLOG_ACTIVE_LEVEL in test. Should be SPDLOG_LEVEL_DEBUG" 10 | #endif 11 | 12 | #define TEST_FILENAME "test_logs/simple_log" 13 | 14 | TEST_CASE("debug and trace w/o format string", "[macros]") { 15 | prepare_logdir(); 16 | spdlog::filename_t filename = SPDLOG_FILENAME_T(TEST_FILENAME); 17 | 18 | auto logger = spdlog::create("logger", filename); 19 | logger->set_pattern("%v"); 20 | logger->set_level(spdlog::level::trace); 21 | 22 | SPDLOG_LOGGER_TRACE(logger, "Test message 1"); 23 | SPDLOG_LOGGER_DEBUG(logger, "Test message 2"); 24 | logger->flush(); 25 | 26 | using spdlog::details::os::default_eol; 27 | REQUIRE(ends_with(file_contents(TEST_FILENAME), 28 | spdlog::fmt_lib::format("Test message 2{}", default_eol))); 29 | REQUIRE(count_lines(TEST_FILENAME) == 1); 30 | 31 | auto orig_default_logger = spdlog::default_logger(); 32 | spdlog::set_default_logger(logger); 33 | 34 | SPDLOG_TRACE("Test message 3"); 35 | SPDLOG_DEBUG("Test message {}", 4); 36 | logger->flush(); 37 | 38 | require_message_count(TEST_FILENAME, 2); 39 | REQUIRE(ends_with(file_contents(TEST_FILENAME), 40 | spdlog::fmt_lib::format("Test message 4{}", default_eol))); 41 | spdlog::set_default_logger(std::move(orig_default_logger)); 42 | } 43 | 44 | TEST_CASE("disable param evaluation", "[macros]") { 45 | SPDLOG_TRACE("Test message {}", throw std::runtime_error("Should not be evaluated")); 46 | } 47 | 48 | TEST_CASE("pass logger pointer", "[macros]") { 49 | auto logger = spdlog::create("refmacro"); 50 | auto &ref = *logger; 51 | SPDLOG_LOGGER_TRACE(&ref, "Test message 1"); 52 | SPDLOG_LOGGER_DEBUG(&ref, "Test message 2"); 53 | } 54 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/Detours/samples/slept/sleepold.cpp: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////////////////////////// 2 | // 3 | // Detour Test Program (sleepold.cpp of sleepold.exe) 4 | // 5 | // Microsoft Research Detours Package 6 | // 7 | // Copyright (c) Microsoft Corporation. All rights reserved. 8 | // 9 | 10 | #include 11 | #include 12 | 13 | #include "verify.cpp" 14 | 15 | int __cdecl main(int argc, char **argv) 16 | { 17 | BOOL fQuiet = FALSE; 18 | 19 | if (argc == 2 && _stricmp(argv[1], "-quiet") == 0) { 20 | fQuiet = TRUE; 21 | } 22 | 23 | // 24 | // Verify what the code looks like. 25 | // 26 | printf("sleepold.exe: Starting (at %p).\n", main); 27 | if (!fQuiet) { 28 | Verify("SleepEx", (PBYTE)SleepEx); 29 | printf("\n"); 30 | } 31 | fflush(stdout); 32 | 33 | // 34 | // See if another process wants us to wait on a shared event. 35 | // This helps in testing loading a DLL into a new process. 36 | 37 | if (argc == 2 && _stricmp(argv[1], "-wait") == 0) { 38 | HANDLE hEvent = OpenEventA(SYNCHRONIZE, FALSE, "detours_load_test_event"); 39 | if (hEvent) { 40 | printf("sleepold.exe: Waiting for detours_load_test_event to be set.\n"); 41 | fflush(stdout); 42 | WaitForSingleObject(hEvent, INFINITE); 43 | } 44 | else { 45 | printf("sleepold.exe: Couldn't open detours_load_test_event.\n"); 46 | } 47 | } 48 | 49 | // 50 | // Try out sleep (which may be detours). 51 | // 52 | printf("sleepold.exe: Calling Sleep for 1 second.\n"); 53 | Sleep(1000); 54 | 55 | printf("sleepold.exe: Calling SleepEx for 1 second.\n"); 56 | SleepEx(1000, false); 57 | 58 | printf("sleepold.exe: Calling Sleep again for 1 second.\n"); 59 | Sleep(1000); 60 | 61 | // DebugBreak(); 62 | 63 | printf("sleepold.exe: Done sleeping.\n\n"); 64 | fflush(stdout); 65 | 66 | return 0; 67 | } 68 | // 69 | ///////////////////////////////////////////////////////////////// End of File. 70 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/sinks/base_sink-inl.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | #ifndef SPDLOG_HEADER_ONLY 7 | #include 8 | #endif 9 | 10 | #include 11 | #include 12 | 13 | #include 14 | #include 15 | 16 | template 17 | SPDLOG_INLINE spdlog::sinks::base_sink::base_sink() 18 | : formatter_{details::make_unique()} {} 19 | 20 | template 21 | SPDLOG_INLINE spdlog::sinks::base_sink::base_sink( 22 | std::unique_ptr formatter) 23 | : formatter_{std::move(formatter)} {} 24 | 25 | template 26 | void SPDLOG_INLINE spdlog::sinks::base_sink::log(const details::log_msg &msg) { 27 | std::lock_guard lock(mutex_); 28 | sink_it_(msg); 29 | } 30 | 31 | template 32 | void SPDLOG_INLINE spdlog::sinks::base_sink::flush() { 33 | std::lock_guard lock(mutex_); 34 | flush_(); 35 | } 36 | 37 | template 38 | void SPDLOG_INLINE spdlog::sinks::base_sink::set_pattern(const std::string &pattern) { 39 | std::lock_guard lock(mutex_); 40 | set_pattern_(pattern); 41 | } 42 | 43 | template 44 | void SPDLOG_INLINE 45 | spdlog::sinks::base_sink::set_formatter(std::unique_ptr sink_formatter) { 46 | std::lock_guard lock(mutex_); 47 | set_formatter_(std::move(sink_formatter)); 48 | } 49 | 50 | template 51 | void SPDLOG_INLINE spdlog::sinks::base_sink::set_pattern_(const std::string &pattern) { 52 | set_formatter_(details::make_unique(pattern)); 53 | } 54 | 55 | template 56 | void SPDLOG_INLINE 57 | spdlog::sinks::base_sink::set_formatter_(std::unique_ptr sink_formatter) { 58 | formatter_ = std::move(sink_formatter); 59 | } 60 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/include/spdlog/details/periodic_worker.h: -------------------------------------------------------------------------------- 1 | // Copyright(c) 2015-present, Gabi Melman & spdlog contributors. 2 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 3 | 4 | #pragma once 5 | 6 | // periodic worker thread - periodically executes the given callback function. 7 | // 8 | // RAII over the owned thread: 9 | // creates the thread on construction. 10 | // stops and joins the thread on destruction (if the thread is executing a callback, wait for it 11 | // to finish first). 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | namespace spdlog { 19 | namespace details { 20 | 21 | class SPDLOG_API periodic_worker { 22 | public: 23 | template 24 | periodic_worker(const std::function &callback_fun, 25 | std::chrono::duration interval) { 26 | active_ = (interval > std::chrono::duration::zero()); 27 | if (!active_) { 28 | return; 29 | } 30 | 31 | worker_thread_ = std::thread([this, callback_fun, interval]() { 32 | for (;;) { 33 | std::unique_lock lock(this->mutex_); 34 | if (this->cv_.wait_for(lock, interval, [this] { return !this->active_; })) { 35 | return; // active_ == false, so exit this thread 36 | } 37 | callback_fun(); 38 | } 39 | }); 40 | } 41 | std::thread &get_thread() { return worker_thread_; } 42 | periodic_worker(const periodic_worker &) = delete; 43 | periodic_worker &operator=(const periodic_worker &) = delete; 44 | // stop the worker thread and join it 45 | ~periodic_worker(); 46 | 47 | private: 48 | bool active_; 49 | std::thread worker_thread_; 50 | std::mutex mutex_; 51 | std::condition_variable cv_; 52 | }; 53 | } // namespace details 54 | } // namespace spdlog 55 | 56 | #ifdef SPDLOG_HEADER_ONLY 57 | #include "periodic_worker-inl.h" 58 | #endif 59 | -------------------------------------------------------------------------------- /StormMemPoolFix/Dependencies/spdlog/tests/test_sink.h: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright(c) 2018 Gabi Melman. 3 | // Distributed under the MIT License (http://opensource.org/licenses/MIT) 4 | // 5 | 6 | #pragma once 7 | 8 | #include "spdlog/details/null_mutex.h" 9 | #include "spdlog/sinks/base_sink.h" 10 | #include "spdlog/fmt/fmt.h" 11 | #include 12 | #include 13 | #include 14 | 15 | namespace spdlog { 16 | namespace sinks { 17 | 18 | template 19 | class test_sink : public base_sink { 20 | const size_t lines_to_save = 100; 21 | 22 | public: 23 | size_t msg_counter() { 24 | std::lock_guard lock(base_sink::mutex_); 25 | return msg_counter_; 26 | } 27 | 28 | size_t flush_counter() { 29 | std::lock_guard lock(base_sink::mutex_); 30 | return flush_counter_; 31 | } 32 | 33 | void set_delay(std::chrono::milliseconds delay) { 34 | std::lock_guard lock(base_sink::mutex_); 35 | delay_ = delay; 36 | } 37 | 38 | // return last output without the eol 39 | std::vector lines() { 40 | std::lock_guard lock(base_sink::mutex_); 41 | return lines_; 42 | } 43 | 44 | protected: 45 | void sink_it_(const details::log_msg &msg) override { 46 | memory_buf_t formatted; 47 | base_sink::formatter_->format(msg, formatted); 48 | // save the line without the eol 49 | auto eol_len = strlen(details::os::default_eol); 50 | if (lines_.size() < lines_to_save) { 51 | lines_.emplace_back(formatted.begin(), formatted.end() - eol_len); 52 | } 53 | msg_counter_++; 54 | std::this_thread::sleep_for(delay_); 55 | } 56 | 57 | void flush_() override { flush_counter_++; } 58 | 59 | size_t msg_counter_{0}; 60 | size_t flush_counter_{0}; 61 | std::chrono::milliseconds delay_{std::chrono::milliseconds::zero()}; 62 | std::vector lines_; 63 | }; 64 | 65 | using test_sink_mt = test_sink; 66 | using test_sink_st = test_sink; 67 | 68 | } // namespace sinks 69 | } // namespace spdlog 70 | --------------------------------------------------------------------------------