replaceImageByName null pointer dereference
@kevingpqi123 is already working on this.
Since Aug 5, 2025.
- Dominant language
- HTML
- Stars
- 5.8k
- Forks
- 531
- Avg merge
- 8d 55m
- Merged PRs (30d)
- 17
Description
【版本信息】
libpag 4.4.35
【平台信息】
Android 原生
【预期的表现】
App 不发生Crash
【实际的情况】
非必现,线上 Crash 收集,从 4.3.51 升级到 4.4.35 后,出现使用(replaceImageByName)替换图片空指针
【Demo及附件】
日志信息:
: null pointer dereference
#00 pc 0x866d6 (pthread_mutex_lock [/apex/com.android.runtime/lib/bionic/libc.so]) (BuildId: 71a2f1cd264ec2d3345f80a95e83025c)
#01 pc 0x20aef1 (Java_org_libpag_DisplayLink_onUpdate [/data/app/~~34JnWR5nbJiHZDjj_64n0w==/com.zr.siya-J_oTY_F1eDol7ycX0tcYEw==/split_config.armeabi_v7a.apk!libpag.so]) (BuildId: 81cec94f4680fac72f2caf9ec11d2ea11593204b)
#02 pc 0x11207b (Java_org_libpag_PAGFile_nativeReplaceImage [/data/app/~~34JnWR5nbJiHZDjj_64n0w==/com.zr.siya-J_oTY_F1eDol7ycX0tcYEw==/split_config.armeabi_v7a.apk!libpag.so]) (BuildId: 81cec94f4680fac72f2caf9ec11d2ea11593204b)
#03 pc 0x1120f3 (Java_org_libpag_PAGFile_nativeReplaceImageByName [/data/app/~~34JnWR5nbJiHZDjj_64n0w==/com.zr.siya-J_oTY_F1eDol7ycX0tcYEw==/split_config.armeabi_v7a.apk!libpag.so]) (BuildId: 81cec94f4680fac72f2caf9ec11d2ea11593204b)
#04 pc 0x14b71d (art_quick_generic_jni_trampoline [/apex/com.android.art/lib/libart.so]) (BuildId: 5ee20176a1b8d9e948b8985703c6c06b)
#05 pc 0x32d040 (nterp_helper [/apex/com.android.art/lib/libart.so]) (BuildId: 5ee20176a1b8d9e948b8985703c6c06b)
#06 pc 0x4b7070 (org.libpag.PAGFile.replaceImageByName [/data/app/~~34JnWR5nbJiHZDjj_64n0w==/com.zr.siya-J_oTY_F1eDol7ycX0tcYEw==/base.apk])
#07 pc 0x32c980 (nterp_helper [/apex/com.android.art/lib/libart.so]) (BuildId: 5ee20176a1b8d9e948b8985703c6c06b)
#08 pc 0x34aa4e (RedPacketOpenDialog$refreshPagContent$1$1.invokeSuspend [/data/app/~~34JnWR5nbJiHZDjj_64n0w==/com.zr.siya-J_oTY_F1eDol7ycX0tcYEw==/base.apk])
#09 pc 0x2075a35 (kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith [/memfd:jit-cache (deleted)])
#10 pc 0x2015525 (kotlinx.coroutines.DispatchedTask.run [/memfd:jit-cache (deleted)])
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.