| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c75f5f3 commit 96bcd52
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,6 +23,11 @@ inline uint32_t ReadUint32BE(const unsigned char* p) { | |||
| 23 | 23 | static_cast<uint32_t>(p[3]); | |
| 24 | 24 | } | |
| 25 | 25 | ||
| 26 | + #ifdef _MSC_VER | ||
| 27 | + #pragma warning(push) | ||
| 28 | + // MSVC C4003: not enough actual parameters for macro 'identifier' | ||
| 29 | + #pragma warning(disable : 4003) | ||
| 30 | + #endif | ||
| 26 | 31 | ||
| 27 | 32 | template <typename TypeName> | |
| 28 | 33 | bool base64_decode_group_slow(char* const dst, const size_t dstlen, | |
@@ -50,6 +55,9 @@ bool base64_decode_group_slow(char* const dst, const size_t dstlen, | |||
| 50 | 55 | return true; // Continue decoding. | |
| 51 | 56 | } | |
| 52 | 57 | ||
| 58 | + #ifdef _MSC_VER | ||
| 59 | + #pragma warning(pop) | ||
| 60 | + #endif | ||
| 53 | 61 | ||
| 54 | 62 | template <typename TypeName> | |
| 55 | 63 | size_t base64_decode_fast(char* const dst, const size_t dstlen, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,6 +28,12 @@ namespace per_process { | |||
| 28 | 28 | extern unsigned int reverted_cve; | |
| 29 | 29 | } | |
| 30 | 30 | ||
| 31 | + #ifdef _MSC_VER | ||
| 32 | + #pragma warning(push) | ||
| 33 | + // MSVC C4065: switch statement contains 'default' but no 'case' labels | ||
| 34 | + #pragma warning(disable : 4065) | ||
| 35 | + #endif | ||
| 36 | + | ||
| 31 | 37 | inline const char* RevertMessage(const reversion cve) { | |
| 32 | 38 | #define V(code, label, msg) case SECURITY_REVERT_##code: return label ": " msg; | |
| 33 | 39 | switch (cve) { | |
@@ -38,6 +44,10 @@ inline const char* RevertMessage(const reversion cve) { | |||
| 38 | 44 | #undef V | |
| 39 | 45 | } | |
| 40 | 46 | ||
| 47 | + #ifdef _MSC_VER | ||
| 48 | + #pragma warning(pop) | ||
| 49 | + #endif | ||
| 50 | + | ||
| 41 | 51 | inline void Revert(const reversion cve) { | |
| 42 | 52 | per_process::reverted_cve |= 1 << cve; | |
| 43 | 53 | printf("SECURITY WARNING: Reverting %s\n", RevertMessage(cve)); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments