1 Star 0 Fork 26

Frids/unbound

forked from src-openEuler/unbound 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-pre-CVE-2024-33655-Fix-possibly-unaligned-memory-access-in-parse_edns_options_from_query.patch 833 Bytes
一键复制 编辑 原始数据 按行查看 历史
eaglegai 提交于 2024-05-16 08:17 . fix CVE-2024-33655
From 2b1028bdad6da4d42f0571d0182322c3554e0bcc Mon Sep 17 00:00:00 2001
From: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl>
Date: Wed, 16 Aug 2023 10:06:06 +0200
Subject: [PATCH] - Fix possibly unaligned memory access.
---
util/data/msgparse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/data/msgparse.c b/util/data/msgparse.c
index 8cef37a17..40189d613 100644
--- a/util/data/msgparse.c
+++ b/util/data/msgparse.c
@@ -1049,7 +1049,7 @@ parse_edns_options_from_query(uint8_t* rdata_ptr, size_t rdata_len,
/* Copy client cookie, version and timestamp for
* validation and creation purposes.
*/
- memcpy(server_cookie, rdata_ptr, 16);
+ memmove(server_cookie, rdata_ptr, 16);
/* In the "if, if else" block below, we validate a
* RFC9018 cookie. If it doesn't match the recipe, or
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/frids/unbound.git
git@gitee.com:frids/unbound.git
frids
unbound
unbound
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385