1 Star 0 Fork 25

lixing.loongson.cn/binutils_anolis

forked from src-anolis-os/binutils 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
binutils-memory-access-when-parsing-an-elf-file.patch 451 Bytes
一键复制 编辑 原始数据 按行查看 历史
Distro SIG 提交于 2023-11-02 14:17 . update to binutils-2.30-119.2.src.rpm
--- binutils.orig/bfd/elf.c 2023-04-28 12:54:08.090737942 +0100
+++ binutils-2.30/bfd/elf.c 2023-04-28 12:53:28.602795763 +0100
@@ -8398,6 +8398,8 @@ error_return_verref:
|| bfd_bread (contents, hdr->sh_size, abfd) != hdr->sh_size)
goto error_return_verref;
+ if (hdr->sh_info == 0)
+ goto error_return_verref;
elf_tdata (abfd)->verref = (Elf_Internal_Verneed *)
bfd_alloc2 (abfd, hdr->sh_info, sizeof (Elf_Internal_Verneed));
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lixing-loongson-cn/binutils_anolis.git
git@gitee.com:lixing-loongson-cn/binutils_anolis.git
lixing-loongson-cn
binutils_anolis
binutils_anolis
a8

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385