wustor

Results 4 issues of wustor

Matrix中有针对open gl泄露的检测,针对最新代码进行了研究,没有特别理解背后的原理,有几个问题希望能够解答一下,或者提供一下相应的资料 ### OpenglIndexDetectorService作用 在OpenglLeakPlugin的start方法中,在开启的Thread中调用了startImpl方法,随后启动了OpenglIndexDetectorService,Service中的onBind返回了一个IBinder对象,为何要跨进程?在Service中的onServiceConnected中进行了hook操作,这样做的原因是什么,为什么不直接hook? ### get_gl_hooks作用 以Java_com_tencent_matrix_openglleak_hook_OpenGLHook_hookGlGenTextures这个方法为例 `extern "C" JNIEXPORT jboolean JNICALL Java_com_tencent_matrix_openglleak_hook_OpenGLHook_hookGlGenTextures (JNIEnv *, jclass, jint index) { gl_hooks_t *hooks = get_gl_hooks(); if (NULL == hooks) { return...

**执行完分析的脚本** python /Users/mac/Desktop/NativeLeakProf/nlp_stack_parser.py /Users/mac/Library/Android/sdk/ndk/21.1.6352462 /Users/mac/Desktop/leak.txt arm64-v8a /Users/mac/Desktop/NativeLeakProf **返回结果** currentPath: /Users/mac/Desktop/NativeLeakProf/nlp_stack_parser.py architecture is arm64-v8a addr2line path: /Users/mac/Library/Android/sdk/ndk/21.1.6352462/toolchains/aarch64-linux-android-4.9/prebuilt/darwin-x86_64/bin/aarch64-linux-android-addr2line find arm64-v8a addr2line find lib: libappLib.so leak size: 12.007812KB finish lib libappLib.so parse ERROR:...

**Describe the bug** The data color is inconsistent when json shrinks **To Reproduce** Steps to reproduce the behavior: 1. Go to response 2. Click on expand or shrink a jsonObjec...

bug