Skip to content

Commit

Permalink
bound check
Browse files Browse the repository at this point in the history
  • Loading branch information
anzz1 authored Aug 14, 2023
1 parent 4e4d3d7 commit 8b1c8dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ __forceinline static int securom_check(HMODULE hModule) {
if (GetModuleFileNameA(hModule, path, 511)) {
path[511] = 0;
p = __strrchr(path, '\\');
if (p) {
if (p && p-path < 485) {
__strcpy(++p, "disable_securom_guard.txt");
if (FileExistsA(path))
return 0;
Expand Down

0 comments on commit 8b1c8dc

Please sign in to comment.