已关闭
[ArkWeb][安全][上游社区漏洞修复][BUG-536505721] fragData传参校验 #468
[ArkWeb][安全][上游社区漏洞修复][BUG-536505721] fragData传参校验 #468
已关闭
创建于 12 天前关闭于 11 天前
。
12 天前

Bug 编号

chromium:536505721

修复内容

同步 Chromium 上游 ANGLE 修复:GLSL 验证器新增 functionCallFragDataCheck(),检测 fragData 数组整体作为函数参数传递的情况并报错(未启用 GL_EXT_blend_func_extended 时禁止整体传递)。
变更文件:

  • src/compiler/translator/ParseContext.h:新增 void functionCallFragDataCheck(const TFunction *fnCandidate, TIntermAggregate *fnCall);
  • src/compiler/translator/ParseContext.cpp:实现校验(IsWholeArrayFragDataUsed)并在函数调用处理处调用;
  • src/tests/gl_tests/GLSLValidationTest.cpp:新增 BlendFuncExtendedPassFragDataToFunction 用例(27 行)。

影响范围

仅影响 GLSL 编译校验(错误诊断),不改变合法着色器行为。

测试情况

GLSLValidationTest 新增 BlendFuncExtendedPassFragDataToFunction 用例,与既有 BlendFuncExtended 用例一并运行。

likedislike
当前Pull Request已关闭, 关闭人@。
openharmony_ci
openharmony_ci成员
12 天前 评论:

感谢提交 Pull Requests!
Thanks for submitting a pull request.

likedislike
openharmony_ciopenharmony_ci成员
12 天前 添加了label:dco检查成功
。
12 天前 修改了pull request 的描述
。
12 天前 修改了pull request 的描述
。
11 天前 关闭了 pull request
。
11 天前 修改了pull request 的描述