Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance and Security Updates #3

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

AnubyteCode
Copy link
Contributor

  • String Formatting:
    Updated SK_FormatStringW to use a 4096-character stack buffer with vswprintf_s and a dynamic fallback if needed, ensuring safe formatting without overruns.

  • Path Retrieval:
    Replaced fixed-size arrays for current directory and executable paths with dynamic allocation via std::wstring and std::vector to avoid buffer overflow issues.

  • Cleaner Command-Line Parsing:
    Switched from multiple wcsstr calls to std::wstring::find for processing command-line arguments.

  • Enhanced Safety:
    Added a check for the GetProcAddress result before calling RunDLL_InjectionManager.

  • C++ Updates:
    Replaced all instances of NULL with nullptr.

Sprectre mits, Intel JCC perf boost.
String Formatting:
Updated SK_FormatStringW to use a 4096-character stack buffer with vswprintf_s and a dynamic fallback if needed, ensuring safe formatting without overruns.

Path Retrieval:
Replaced fixed-size arrays for current directory and executable paths with dynamic allocation via std::wstring and std::vector to avoid buffer overflow issues.

Cleaner Command-Line Parsing:
Switched from multiple wcsstr calls to std::wstring::find for processing command-line arguments.

Enhanced Safety:
Added a check for the GetProcAddress result before calling RunDLL_InjectionManager.

C++ Updates:
Replaced all instances of NULL with nullptr.
Version bump and accompanying text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant