Welcome To openEuler Community
Hey @tong_1001 , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
Contact Guide
If you have any questions, please contact the SIG: sig-ruby ,
and any of the maintainers: @shinwell_hu, @small_leek ,
and any of the committers: @hubin1305, @shenyangyang .


/branches master /name shixuantong /email sxt1001@qq.com


正在自动化处理任务,任务编号:TASK-gitcode__ruby-136-20260828172231,指定分支:master


/branches openEuler-24.03-LTS-SP4 /name shixuantong /email sxt1001@qq.com


正在自动化处理任务,任务编号:TASK-gitcode__ruby-136-20260829083438,指定分支:openEuler-24.03-LTS-SP4


/branches master /name shixuantong /email sxt1001@qq.com


─── CVE-2026-80212 ───
是否需要修复:是
是否存在适配:否
上游社区补丁:https://github.com/ruby/resolv/commit/23f000967da6daed15bc93b5e6e6fe644bd82f2f.patch
分支修复情况:
1.master: 已修复
PR:- master: https://gitcode.com/src-openeuler/ruby/merge_requests/336
适配情况:无
─── CVE-2026-80213 ───
是否需要修复:是
是否存在适配:否
上游社区补丁:https://github.com/ruby/resolv/commit/b0ddbb522cd76e58d965294dfb68133add52770c.patch
分支修复情况:
1.master: 已修复
PR:- master: https://gitcode.com/src-openeuler/ruby/merge_requests/336
适配情况:无


补丁适配报告 (CVE-2026-80212)
1. backport-CVE-2026-80212.patch
- 状态: 适配成功 (status=adapted)
- 置信度: high
适配冲突说明
| # | 文件 | 适配类型 | 原因 |
|---|---|---|---|
| 1 | test/resolv/test_resource.rb | 上下文调整 | ruby-3.2.8 的 test/resolv/test_resource.rb 在 test_coord 方法后直接以 class 的 end 结尾,不存在原补丁期望的 def test_srv_no_compress 方法。适配仅调整尾部上下文行(从 def test_srv_no_compress 改为 class end),61 行核心 + 变更行逐字保留,未篡改任何字符。 |
完整代码 diff(适配前 → 适配后)
1. test/resolv/test_resource.rb — 上下文调整
--- 适配前
+++ 适配后
@@ -1,8 +1,6 @@
-@@ -24,6 +24,67 @@ def test_coord
+@@ -23,4 +23,66 @@ class TestResolvResource < Test::Unit::TestCase
Resolv::LOC::Coord.create('1 2 1.1 N')
end
-[+61 lines of new test methods]
- def test_srv_no_compress
- # Domain name in SRV RDATA should not be compressed
- issue29 = 'https://github.com/ruby/resolv/issues/29'
+[+61 lines of new test methods, verbatim]
+end


如题,修复补丁:
https://github.com/ruby/resolv/commit/23f000967da6daed15bc93b5e6e6fe644bd82f2f
https://github.com/ruby/resolv/commit/b0ddbb522cd76e58d965294dfb68133add52770c