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_lzss.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_lzss.cpp')
-rw-r--r-- | NorthstarDLL/exploitfixes_lzss.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/NorthstarDLL/exploitfixes_lzss.cpp b/NorthstarDLL/exploitfixes_lzss.cpp index 87d2868d..cbc357bd 100644 --- a/NorthstarDLL/exploitfixes_lzss.cpp +++ b/NorthstarDLL/exploitfixes_lzss.cpp @@ -12,8 +12,10 @@ struct lzss_header_t // Rewrite of CLZSS::SafeUncompress to fix a vulnerability where malicious compressed payloads could cause the decompressor to try to read // out of the bounds of the output buffer. +// clang-format off AUTOHOOK(CLZSS__SafeDecompress, engine.dll + 0x432A10, unsigned int,, (void* self, const unsigned char* pInput, unsigned char* pOutput, unsigned int unBufSize)) +// clang-format on { unsigned int totalBytes = 0; int getCmdByte = 0; |