Skip to content

Commit 45739a0

Browse files
committed
launcher: Remove noexcept for throwing functions
1 parent 92c1947 commit 45739a0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Client/launch/Main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ namespace Security
358358
}
359359

360360
// Clean path helper
361-
[[nodiscard]] std::wstring CleanPathSegments(const std::wstring& path) noexcept
361+
[[nodiscard]] std::wstring CleanPathSegments(const std::wstring& path)
362362
{
363363
std::wstring cleanPath;
364364
cleanPath.reserve(path.length());
@@ -395,7 +395,7 @@ namespace Security
395395
}
396396

397397
// Validate environment variables for security
398-
bool ValidateEnvironment() noexcept
398+
bool ValidateEnvironment()
399399
{
400400
// Check for dangerous environment variables
401401
constexpr const wchar_t* dangerousVars[] = {L"LD_PRELOAD", L"LD_LIBRARY_PATH", L"_NT_SYMBOL_PATH", L"_NT_ALT_SYMBOL_PATH",
@@ -450,7 +450,7 @@ namespace Security
450450
}
451451

452452
// Verify digital signature of a file
453-
[[nodiscard]] bool VerifyFileSignature(const SString& strFilePath) noexcept
453+
[[nodiscard]] bool VerifyFileSignature(const SString& strFilePath)
454454
{
455455
const std::wstring wstrFilePath = FromUTF8(strFilePath);
456456

@@ -509,7 +509,7 @@ namespace Security
509509
}
510510

511511
// Enhanced path validation with canonicalization
512-
[[nodiscard]] bool IsValidPath(const SString& strPath) noexcept
512+
[[nodiscard]] bool IsValidPath(const SString& strPath)
513513
{
514514
if (strPath.empty() || strPath.length() > SecurityConstants::MAX_PATH_LENGTH)
515515
return false;
@@ -658,14 +658,14 @@ namespace Security
658658
}
659659

660660
// Secure DLL loading with file locking
661-
[[nodiscard]] HMODULE SecureLoadLibraryWithLockImpl(const SString& strDllPath, DWORD dwFlags) noexcept
661+
[[nodiscard]] HMODULE SecureLoadLibraryWithLockImpl(const SString& strDllPath, DWORD dwFlags)
662662
{
663663
// Convert to wide string and call the SEH-safe helper
664664
std::wstring widePath = FromUTF8(strDllPath);
665665
return LoadLibraryWithLock(widePath.c_str(), dwFlags);
666666
}
667667

668-
[[nodiscard]] HMODULE SecureLoadLibrary(const SString& strDllPath, const SString& strDllName) noexcept
668+
[[nodiscard]] HMODULE SecureLoadLibrary(const SString& strDllPath, const SString& strDllName)
669669
{
670670
if (!IsValidPath(strDllPath) || !IsValidDllName(strDllName))
671671
{

0 commit comments

Comments
 (0)