已开启
avmemory 子类加固 memFlag 校验与对齐 + 代码同步 #2744
avmemory 子类加固 memFlag 校验与对齐 + 代码同步 #2744
已开启
lzm创建于 12 天前
lzm
lzm
12 天前

Fixes #1334

变更说明

加固 avmemory 子类的 memFlag 合法性校验与 capacity 对齐,详见关联 Issue。

改动文件

  • src/buffer/avbuffer/av_hardware_memory.cpp:Init 校验 memFlag 合法性,非法则关 fd 返回 ERROR_INVALID_DATA。
  • src/buffer/avbuffer/av_shared_memory_ext.cpp:Init 按 align_ 向上取整 capacity_ 后 Alloc;Init(parcel) 校验 memFlag;MapMemoryAddr 增加 fd_>0 与 AshmemGetSize==capacity_ 校验。
  • src/buffer/avbuffer/av_virtual_memory.cpp:Init 按 align_ 向上取整 capacity_ 后 Alloc,移除基址 offset_ 二次对齐。
  • tests/unittest/avbuffer/avbuffer_unit_test.h:memFlag_ 默认 MEMORY_READ_WRITE 以通过新校验。

自测

avbuffer 单测通过。

likedislike
合并受阻
lzmlzm
12 天前 关联了issue:avmemory 子类未校验 memFlag 合法性与 capacity 对齐 (OpenHarmony-7.0-Release)
lzm
lzm
12 天前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
12 天前 评论:

OpenHarmony-7.0-Release所有代码仓合入受控, 请联系分支负责人@shermanzhong: sherman.zhong@huawei.com, @RayShih: shirui721@huawei.com, @GGRong99: gaojinrong@huawei.com, @ywpoles: dony.wangyu@huawei.com任一人评审并评论approve

likedislike
openharmony_ciopenharmony_ci成员
12 天前 添加了label:分支负责人未批准合入
openharmony_ciopenharmony_ci成员
12 天前 添加了label:waiting_on_author
openharmony_ci
openharmony_ci成员
12 天前 评论:

感谢提交 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成员
12 天前 添加了label:dco检查成功
openharmony_ci
openharmony_ci成员
12 天前 评论:

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

likedislike
lzmlzm
12 天前 推送  1 个提交:47bbba17-Revert "avmemory 加固 size+offset 越界与整数溢出校验"
openharmony_ci
openharmony_ci成员
12 天前 评论:

监测到PR: https://gitcode.com/openharmony/multimedia_media_foundation/merge_requests/2744 代码有更新,当前正在执行的门禁任务已自动中止,如有需要,可重新触发

likedislike
lzm
lzm
12 天前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
12 天前 评论:

感谢提交 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_ci
openharmony_ci成员
12 天前 评论:

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

likedislike
lzmlzm
12 天前 修改标题为 “avmemory 子类加固 memFlag 校验与对齐 + 代码同步”,原标题为“avmemory 子类加固 memFlag 校验与对齐”
lzm
lzm
12 天前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
12 天前 评论:

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

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

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

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 hispark_taurus_LiteOS failed(compile failed) NA >>>
2 hispark_taurus_Linux success NA >>>
3 dayu200 success success >>>
4 dayu200_tdd_7_0_release success NA >>>
5 dayu200_xts_acts_7_0_release success NA >>>
6 dayu600_7885_7.0_release success success >>>
7 dayu600_7885_tdd_7.0_Release success NA >>>

likedislike
张万鹏张万鹏成员
12 天前 通过审查
lzm
lzm
12 天前 评论:

start build

likedislike
openharmony_ciopenharmony_ci成员
12 天前 删除了label:编译失败
openharmony_ciopenharmony_ci成员
12 天前 删除了label:冒烟测试失败
openharmony_ci
openharmony_ci成员
12 天前 评论:

部分构建失败,仅触发失败构建
门禁构建开始,包含代码编译和测试【hispark_taurus_LiteOS编译, hispark_taurus_LiteOS测试】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a87ca7264650f998b3928bb/runlist

likedislike
openharmony_ciopenharmony_ci成员
12 天前 添加了label:编译成功
openharmony_ciopenharmony_ci成员
12 天前 添加了label:冒烟测试成功
openharmony_ciopenharmony_ci成员
12 天前 通过测试
openharmony_ci
openharmony_ci成员
12 天前 评论:

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

# Device build result test result package
1 hispark_taurus_LiteOS success success >>>

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

您好,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