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

Commit

Permalink
[BUG] 修复 NATIVEmalloc 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
4ra1n committed Aug 2, 2024
1 parent 5f9ce0b commit 3952cd4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [功能] 字符串替换时处理反射字符串类名
- [功能] 添加对泛型 `signature` 的处理
- [优化] 优化 `builtin` 黑名单解析和注释
- [BUG] 修复 `NATIVE``malloc` 错误
- [BUG] 修复没有添加目录到 `JAR ENTRY` 的问题
- [BUG] 花指令混淆部分遇到类加载报错解决
- [BUG] 修复 `MANIFEST.MF` 没有完全修改的问题
Expand Down
4 changes: 2 additions & 2 deletions native/start_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *vm, char *options, void *reserved) {
}

// SET PACKAGE_NAME
PACKAGE_NAME = (char *) malloc(strlen((char *) v1));
PACKAGE_NAME = (char *) malloc(strlen((char *) v1) + 1);
strcpy(PACKAGE_NAME, (char *) v1);

// SET KEY
KEY = (unsigned char *) malloc(16);
KEY = (unsigned char *) malloc(strlen((char *) v2) + 1);
strcpy((char *) KEY, (char *) v2);

jvmtiEnv *jvmti;
Expand Down
Binary file modified src/main/resources/libdecrypter.dll
Binary file not shown.
Binary file modified src/main/resources/libencryptor.dll
Binary file not shown.

0 comments on commit 3952cd4

Please sign in to comment.