已合并
add virtual screen symbol #19695
add virtual screen symbol #19695
已合并
wsen创建于 7月17日
wsen
wsen
7月17日

Description:
add virtual screen symbol

Issue number:
https://gitcode.com/openharmony/graphic_graphic_2d/issues/24760

Test & Result:
pass
CodeCheck:

类型自检项自检结果
多线程相关在类的成员变量中定义了vector/map/list等容器类型,且在多个成员函数中有操作时,需要加锁保护自检结果:Pass
定义全局变量,在多个函数中都有操作时,需要加锁保护自检结果:Pass
内存相关调用外部接口时,确认是否对返回值做了判断,尤其外部接口返回了nullptr的情况,避免进程崩溃自检结果:Pass
调用安全函数时,如memcpy_s等,是否检查其返回值自检结果:Pass
检查函数中是否涉及了内存或资源申请(如文件句柄),注意每个异常退出流程,是否都已经将资源释放(推荐使用RAII)自检结果:Pass
隐式内存分配场景:realpath、ReadParcelable序列化、cJSON相关函数时等,需主动释放或使用智能指针自检结果:Pass
校验外部输入使用nlohmann:json解析外部输入时,需判断参数类型是否符合预期自检结果:Pass
所有外部输入均不可信,需判断外部输入是否直接作为内存分配的大小,数组下标、循环条件、SQL查询等自检结果:Pass
外部输入的路径不可信,需使用realpath做标准化处理,并判断路径的合法性自检结果:Pass
外部输入包括对外提供的接口,IPC的proxy/stub接口,序列化/反序列化接口等自检结果:Pass
数学运算代码中是否混合了加减乘除等运算,需检查是否可能导致整数溢出或符号翻转自检结果:Pass
需检查代码是否有高精度数字转换为低精度的操作,如果必须,建议使用C++安全类型转换接口自检结果:Pass
检查代码在计算时是否有除零操作(包括除数是计算出来的结果可能为0的情况)自检结果:Pass
权限相关作为系统服务对外提供了接口,是否做了权限保护和校验(如需要),只允许申请了权限的应用访问自检结果:Pass
提供给其他系统服务的接口默认需要做SA服务校验自检结果:Pass
跨进程通信优先使用异步IPC,若必须使用同步IPC需要考虑对端卡死或高延时影响自检结果:Pass
序列化/反序列化中数据读写顺序要严格对齐自检结果:Pass
likedislike
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 wsen 的贡献)
openharmony_ciopenharmony_ci成员
7月17日 添加了label:waiting_on_author
openharmony_ci
openharmony_ci成员
7月17日 评论:

感谢提交 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成员
7月17日 添加了label:dco检查成功
wsenwsen
7月17日 修改了pull request 的描述
wsenwsen
7月17日 修改了pull request 的描述
此处折叠了88条消息 查看更多
ohci1ohci1成员
7月27日 将ohci1设为测试人
ohci1ohci1成员
7月27日 通过测试
openharmony_ciopenharmony_ci成员
7月27日 合入了pull request,合并节点 SHA:28edba037a563eb753f5090fc29118493b4a2f9a
openharmony_ciopenharmony_ci成员
7月27日 删除了label:waiting_on_author
openharmony_ciopenharmony_ci成员
7月27日 添加了label:merged