diff --git a/lib/checkio.cpp b/lib/checkio.cpp index 096c9697b..f8c211078 100644 --- a/lib/checkio.cpp +++ b/lib/checkio.cpp @@ -34,13 +34,13 @@ namespace { } // CVE ID used: -static const CWE CWE119(119U); // Improper Restriction of Operations within the Bounds of a Memory Buffer +static const CWE CWE119(119U); // Improper Restriction of Operations within the Bounds of a Memory Buffer static const CWE CWE398(398U); // Indicator of Poor Code Quality -static const CWE CWE664(664U); // Improper Control of a Resource Through its Lifetime -static const CWE CWE685(685U); // Function Call With Incorrect Number of Arguments -static const CWE CWE686(686U); // Function Call With Incorrect Argument Type -static const CWE CWE687(687U); // Function Call With Incorrectly Specified Argument Value -static const CWE CWE910(910U); // Use of Expired File Descriptor +static const CWE CWE664(664U); // Improper Control of a Resource Through its Lifetime +static const CWE CWE685(685U); // Function Call With Incorrect Number of Arguments +static const CWE CWE686(686U); // Function Call With Incorrect Argument Type +static const CWE CWE687(687U); // Function Call With Incorrectly Specified Argument Value +static const CWE CWE910(910U); // Use of Expired File Descriptor //--------------------------------------------------------------------------- // std::cout << std::cout; @@ -446,7 +446,7 @@ void CheckIO::invalidScanfError(const Token *tok) "terminating null byte.\n" "Source: http://linux.die.net/man/3/scanf\n" "Source: http://www.opensource.apple.com/source/xnu/xnu-1456.1.26/libkern/stdio/scanf.c", - CWE119, false); + CWE119, false); } //--------------------------------------------------------------------------- diff --git a/lib/settings.h b/lib/settings.h index 8e4c868c8..a406dff0b 100644 --- a/lib/settings.h +++ b/lib/settings.h @@ -295,18 +295,18 @@ public: const char *platformString() const { switch (platformType) { - case Unix32: - return "unix32"; - case Unix64: - return "unix64"; - case Win32A: - return "win32A"; - case Win32W: - return "win32W"; - case Win64: - return "win64"; - default: - return "unknown"; + case Unix32: + return "unix32"; + case Unix64: + return "unix64"; + case Win32A: + return "win32A"; + case Win32W: + return "win32W"; + case Win64: + return "win64"; + default: + return "unknown"; } }