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

Commit

Permalink
Merge pull request #221 from PisLuanyao/master
Browse files Browse the repository at this point in the history
👻
  • Loading branch information
whitechi73 authored Feb 2, 2024
2 parents 262af41 + 29c1ad8 commit b165e1c
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 b165e1c

Please sign in to comment.