已合并
avmemory 加固 size+offset 越界与整数溢出校验 #2700
avmemory 加固 size+offset 越界与整数溢出校验 #2700
已合并
lzm创建于 22 天前
lzm
lzm
22 天前

Fixes #1306

ReadCommonFromMessageParcel/SkipCommonFromMessageParcel/SetSize/SetOffset 四处新增 size+offset 越界校验,并以 offset <= (INT32_MAX - size) 防止求值前 int32 溢出,短路求值避免 UB。ReadCommonFromMessageParcel 校验使用局部 capacity(其唯一调用点 CreateAVMemory(parcel) 为 fresh 对象,成员 capacity_ 默认 0,用成员会拒掉一切非空 parcel 破坏 IPC 反序列化)。补充 12 个单测覆盖合法边界/越界/溢出场景。

关联 Issue: #1306

likedislike
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 lzm 的贡献)
lzmlzm
22 天前 关联了issue:[Bug] AVMemory size+offset 整数溢出可致越界读写
lzm
lzm
22 天前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
22 天前 评论:

首次触发
门禁构建开始,包含静态检查、代码编译和测试【dayu600_7885编译, hispark_taurus_LiteOS编译, dayu200编译, dayu200测试, x86_64_virt编译, ohos-host_mini_tdd编译, dayu600_7885测试, part_compile编译, master_inner_build编译, hispark_taurus_Linux编译, hispark_taurus_LiteOS测试, dayu200_tdd编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a71582564650f998b24b0f1/runlist

likedislike
openharmony_ciopenharmony_ci成员
22 天前 添加了label:waiting_on_author
openharmony_ci
openharmony_ci成员
22 天前 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
22 天前 添加了label:dco检查成功
openharmony_ciopenharmony_ci成员
22 天前 添加了label:编译成功
openharmony_ciopenharmony_ci成员
22 天前 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
22 天前 添加了label:冒烟测试失败
openharmony_ci
openharmony_ci成员
22 天前 评论:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a71582564650f998b24b0f1/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 hispark_taurus_LiteOS success success >>>
2 hispark_taurus_Linux success NA >>>
3 dayu200 success success >>>
4 dayu200_tdd success NA >>>
5 part_compile success(IGNORE) NA >>>
6 master_inner_build success(IGNORE) NA >>>
7 ohos-host_mini_tdd success NA >>>
8 dayu600_7885 success failed(ecotest timeout) >>>
9 x86_64_virt success NA >>>

likedislike
lzmlzm
21 天前 强制推送  1 个提交:444cb88c-avmemory 加固 size+offset 越界与整数溢出校验
lzm
lzm
21 天前 评论:

start build

likedislike
openharmony_ciopenharmony_ci成员
21 天前 删除了label:编译成功
openharmony_ciopenharmony_ci成员
21 天前 删除了label:静态检查成功
openharmony_ciopenharmony_ci成员
21 天前 删除了label:冒烟测试失败
openharmony_ci
openharmony_ci成员
21 天前 评论:

代码有更新,重置PR验证状态

likedislike
openharmony_ci
openharmony_ci成员
21 天前 评论:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译和测试【dayu600_7885编译, master_inner_build编译, hispark_taurus_LiteOS测试, dayu200编译, part_compile编译, dayu200_tdd编译, dayu600_7885测试, hispark_taurus_LiteOS编译, dayu200测试, hispark_taurus_Linux编译, ohos-host_mini_tdd编译, x86_64_virt编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a71816764650f998b33995b/runlist

likedislike
openharmony_ci
openharmony_ci成员
21 天前 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
21 天前 添加了label:编译失败
lzm
lzm
21 天前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
21 天前 评论:

当前有构建正在进行中,请勿重复触发

likedislike
openharmony_ciopenharmony_ci成员
21 天前 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
21 天前 添加了label:冒烟测试失败
openharmony_ci
openharmony_ci成员
21 天前 评论:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a71816764650f998b33995b/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 hispark_taurus_LiteOS success success >>>
2 hispark_taurus_Linux success NA >>>
3 dayu200 success success >>>
4 dayu200_tdd success NA >>>
5 part_compile success(IGNORE) NA >>>
6 master_inner_build success(IGNORE) NA >>>
7 ohos-host_mini_tdd success NA >>>
8 dayu600_7885 failed(compile failed) NA >>>
9 x86_64_virt success NA >>>

likedislike
lzmlzm
21 天前 关闭了 pull request
lzmlzm
19 天前 修改了pull request 的描述
lzmlzm
19 天前 修改了pull request 的描述
lzmlzm
13 天前 重新打开了 pull request
lzm
lzm
13 天前 评论:

start build

likedislike
openharmony_ciopenharmony_ci成员
13 天前 删除了label:编译失败
openharmony_ciopenharmony_ci成员
13 天前 删除了label:静态检查成功
openharmony_ciopenharmony_ci成员
13 天前 删除了label:冒烟测试失败
openharmony_ci
openharmony_ci成员
13 天前 评论:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译和测试【dayu200编译, part_compile编译, hispark_taurus_Linux编译, hispark_taurus_LiteOS测试, dayu600_7885测试, dayu200_tdd编译, ohos-host_mini_tdd编译, master_inner_build编译, hispark_taurus_LiteOS编译, dayu600_7885编译, x86_64_virt编译, dayu200测试】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a7d1ca664650f998beea64f/runlist

likedislike
张万鹏张万鹏成员
13 天前 通过审查
openharmony_ciopenharmony_ci成员
13 天前 添加了label:编译成功
openharmony_ciopenharmony_ci成员
13 天前 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
13 天前 添加了label:冒烟测试成功
openharmony_ciopenharmony_ci成员
13 天前 通过测试
openharmony_ci
openharmony_ci成员
13 天前 评论:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a7d1ca664650f998beea64f/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 hispark_taurus_LiteOS success success >>>
2 hispark_taurus_Linux success NA >>>
3 dayu200 success success >>>
4 dayu200_tdd success NA >>>
5 part_compile success(IGNORE) NA >>>
6 master_inner_build success(IGNORE) NA >>>
7 ohos-host_mini_tdd success NA >>>
8 dayu600_7885 success success >>>
9 x86_64_virt success NA >>>

likedislike
openharmony_ciopenharmony_ci成员
13 天前 删除了label:waiting_on_author
openharmony_ciopenharmony_ci成员
13 天前 添加了label:waiting_for_review
openharmony_ci
openharmony_ci成员
13 天前 评论:

您好,Committer @liuyuehua1 @acefighteryuan @zhang-wanpeng5 ,请分配检视人员检视该PR,可以通过命令"assign [@someone_id]"分配检视人员,也可以直接评论"assign"分配给自己进行检视。


Hello, Committer @liuyuehua1 @acefighteryuan @zhang-wanpeng5 . Please assign someone to review the PR. You can assign a reviewer by using the command "assign [@someone_id]", or you can comment "assign" to review the PR by yourself.

likedislike
openharmony_ciopenharmony_ci成员
13 天前 关闭了关联的issue
openharmony_ciopenharmony_ci成员
13 天前 合入了pull request,合并节点 SHA:940b62061c38cb3a453fe8ef9614747fe5af0dca
openharmony_ciopenharmony_ci成员
13 天前 删除了label:waiting_for_review
openharmony_ciopenharmony_ci成员
13 天前 添加了label:merged