diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-09 01:02:11 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-09 01:02:11 +0200 |
commit | 44a6e0230002ae8a55167453a3ff3283a59b1859 (patch) | |
tree | a6e4f8eff0f4b2f3723a9ae097d4f242a78fd278 /NorthstarDLL/exploitfixes_utf8parser.cpp | |
parent | d2907aa522d56a4baacec1c17426f7d6f1fae3a2 (diff) | |
download | NorthstarLauncher-refactor-format-ignore-autohook.tar.gz NorthstarLauncher-refactor-format-ignore-autohook.zip |
Add clang-format ignores for AUTOHOOKrefactor-format-ignore-autohook
The proper solution would be to have some way in clang-format config
file that specifies that our `AUTOHOOK` formatting should be considered
correct but that takes more investigation and simply ignoring formatting
in AUTOHOOK macros is the lower hanging fruit.
Diffstat (limited to 'NorthstarDLL/exploitfixes_utf8parser.cpp')
-rw-r--r-- | NorthstarDLL/exploitfixes_utf8parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDLL/exploitfixes_utf8parser.cpp b/NorthstarDLL/exploitfixes_utf8parser.cpp index 581596a7..4127c7a3 100644 --- a/NorthstarDLL/exploitfixes_utf8parser.cpp +++ b/NorthstarDLL/exploitfixes_utf8parser.cpp @@ -170,8 +170,10 @@ LABEL_48: } // prevent utf8 parser from crashing when provided bad data, which can be sent through user-controlled openinvites +// clang-format off AUTOHOOK(Rson_ParseUTF8, engine.dll + 0xEF670, bool, __fastcall, (INT64* a1, DWORD* a2, char* strData)) // 48 89 5C 24 ? 48 89 6C 24 ? 48 89 74 24 ? 57 41 54 41 55 41 56 41 57 48 83 EC 20 8B 1A +// clang-format on { static void* targetRetAddr = CModule("engine.dll").FindPattern("84 C0 75 2C 49 8B 16"); |