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
I don't think it is a mandate to add the stack protector for OHOS native libs. Can you provide the official requirement from HuaWei that requires all OHPM lib or Hap to turn on SSP?
鸿蒙的mmkv使用的1.3.5版本,有个安全问题:
Harmony-堆栈保护(不安全)
漏洞描述:
编译程序时采用Stack Smashing Protector (SSP)选项,能够防止栈溢出等破坏性攻击。
漏洞证明:
以下so未使用堆栈保护:
entry\libs\x86_64\libc++shared.so
entry\libs\x86_64\libmmkv.so
entry\libs\x86_64\libnativeGpu.so
修复建议:
使用 -fstack-protector(简称 SSP,Stack Smashing Protector)编译选项有助于防止缓冲区溢出攻击,通过在栈帧中插入随机数("canary" 值)来检测堆栈溢出。例如将这些选项添加到makefile中:
CFLAGS += -fstack-protector
The text was updated successfully, but these errors were encountered: