Skip to content

Commit

Permalink
Merge pull request #4 from mrh929/dev
Browse files Browse the repository at this point in the history
ignore intdata in GlobalsEncryption(bug)
  • Loading branch information
mrh929 authored Feb 28, 2024
2 parents bbafdc1 + 6bb1c37 commit fcaa2ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Transforms/Obfuscation/GlobalsEncryption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ bool GlobalsEncryption::runOnModule(Module &M) {
GV->setConstant(false);
insertArrayDecryption(M, {GV, key, eleNum});
} else if (intData) {
continue; // TODO: fix the bug
uint64_t key = cryptoutils->get_uint64_t();
ConstantInt *enc =
CONST(intData->getType(), key ^ intData->getZExtValue());
Expand Down

0 comments on commit fcaa2ba

Please sign in to comment.