You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detect heap memory overlap, use-after-free and double free issues.
143
147
144
148
145
149
## Features
@@ -197,6 +201,14 @@ At this point, Matrix has been integrated into the app and is beginning to colle
197
201
+**Non-invasive.** It is based on PLT-hook([iqiyi/xHook](https://github.com/iqiyi/xHook)), so we do NOT need to recompile the native libraries.
198
202
+ WebView still works after using this tool.
199
203
204
+
#### MemGuard
205
+
206
+
+ A tool base on GWP-Asan to detect heap memory issues.
207
+
+**Non-invasive.** It is based on PLT-hook([iqiyi/xHook](https://github.com/iqiyi/xHook)), so we do NOT need to recompile the native libraries.
208
+
+ It's able to apply on specific libraries that needs to be detected by RegEx.
209
+
210
+
+ It detects heap memory accessing overlap, use-after-free and double free issues.
211
+
200
212
201
213
#### Backtrace Component
202
214
@@ -208,7 +220,7 @@ At this point, Matrix has been integrated into the app and is beginning to colle
208
220
209
221
1. Configure `MATRIX_VERSION` in gradle.properties.
210
222
```gradle
211
-
MATRIX_VERSION=2.0.1
223
+
MATRIX_VERSION=2.0.2
212
224
```
213
225
214
226
2. Add `matrix-gradle-plugin` in your build.gradle:
@@ -357,11 +369,11 @@ Then other components in Matrix could use Quikcen Backtrace to unwind stacktrace
357
369
358
370
#### APK Checker Usage
359
371
360
-
APK Checker can run independently in Jar ([matrix-apk-canary-2.0.1.jar](https://repo.maven.apache.org/maven2/com/tencent/matrix/matrix-apk-canary/2.0.1/matrix-apk-canary-2.0.1.jar)) mode, usage:
372
+
APK Checker can run independently in Jar ([matrix-apk-canary-2.0.2.jar](https://repo.maven.apache.org/maven2/com/tencent/matrix/matrix-apk-canary/2.0.2/matrix-apk-canary-2.0.2.jar)) mode, usage:
361
373
362
374
363
375
```shell
364
-
java -jar matrix-apk-canary-2.0.1.jar
376
+
java -jar matrix-apk-canary-2.0.2.jar
365
377
Usages:
366
378
--config CONFIG-FILE-PATH
367
379
or
@@ -420,7 +432,7 @@ Matrix is under the BSD license. See the [LICENSE](https://github.com/Tencent/Ma
Copy file name to clipboardexpand all lines: matrix/matrix-android/matrix-backtrace/src/main/cpp/external/libunwindstack/include/unwindstack/LocalUnwinder.h
0 commit comments