已合并
【构建安全】为 glfw 开启 CFI #57
huaixu-y创建于 7月20日
【构建安全】为 glfw 开启 CFI #57
已合并
共 1 个文件变更+5-0
| @@ -24,6 +24,11 @@ config("glfw_config_mac") { | |||
| 24 | 24 | ||
| 25 | ohos_shared_library("glfw") { | 25 | ohos_shared_library("glfw") { |
| 26 | branch_protector_ret = "pac_ret" | 26 | branch_protector_ret = "pac_ret" |
| 27 | + sanitize = { | ||
| 28 | + cfi = true | ||
L | |||
| 29 | + cfi_cross_dso = true | ||
| 30 | + debug = false | ||
| 31 | + } | ||
| 27 | defines = [ "PREVIEW" ] | 32 | defines = [ "PREVIEW" ] |
| 28 | include_dirs = [ "src" ] | 33 | include_dirs = [ "src" ] |
| 29 | public = [ | 34 | public = [ |
新增cfi,校验防止下开启CFI后,无法正常启动应用