Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Clover.cpp
Browse files Browse the repository at this point in the history
临时解决Nox提示 "QQ 屡次停止运行" ,不清楚副作用
  • Loading branch information
HanaKDev authored Feb 2, 2024
1 parent 262af41 commit 29c1ad8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xposed/src/main/cpp/clover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ char * __cdecl my_strstr(const char *lhs, const char *rhs) {
}

int fake_memcmp(const void* __lhs, const void* __rhs, size_t __n) {
int fake_memcmp(const void* __lhs, const void* __rhs, size_t __n) {
if (__lhs == nullptr || __rhs == nullptr) {
if (__n != 0) {
LOGI("[Shamrock] undefined behaviour in fake_memcmp");
}
return 0;
}
if (my_strstr((const char*) __rhs, "shamrock") && my_strstr((const char*) __lhs, "shamrock")) {
if (backup_memcmp(__lhs, __rhs, __n) == 0) {
// 底层广播判断
Expand Down

0 comments on commit 29c1ad8

Please sign in to comment.