Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
70a2c6a880
!57 Fix potential integer overflow in parsednssl
From: @yinbin6 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2025-01-08 01:21:35 +00:00
yinbin
dabbd4876c Fix potential integer overflow in parsednssl 2025-01-07 20:49:18 +08:00
openeuler-ci-bot
79a8a5b804
!27 Update AUTHORS
From: @cao-fei8 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
2023-01-07 10:33:28 +00:00
cao-fei8
660741a6a0 Update AUTHORS
Signed-off-by: cao-fei8 <caofei@xfusion.com>
2023-01-07 02:19:13 +08:00
openeuler-ci-bot
10acc2ede5 !6 move ndisc.spec to ndisc6.spec
From: @orange-snn
Reviewed-by: @wangxp006
Signed-off-by: @wangxp006
2020-12-15 17:03:57 +08:00
orange-snn
c69c05224d move ndisc.spec to ndisc6.spec 2020-12-15 16:29:39 +08:00
openeuler-ci-bot
cf8985efa4 !5 yum安装后无法直接使用man 查看帮助手册,更新spec,让主包安装时依赖help包
From: @jl_git
Reviewed-by: @jeff200902,@small_leek
Signed-off-by: @small_leek
2020-11-09 19:25:31 +08:00
jialei
6b9120dd6d add help for Requires 2020-11-06 15:43:01 +08:00
openeuler-ci-bot
a58eaf4f50 !1 ndisc6: init
Merge pull request !1 from orange-snn/master
2020-01-12 16:44:45 +08:00
songnannan
b9a1d87f4f init 2020-01-11 22:10:22 +08:00
4 changed files with 119 additions and 0 deletions

21
0001-Update-AUTHORS.patch Normal file
View File

@ -0,0 +1,21 @@
From 294417194dcbd67cad483e0239a7a4ee0033b316 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net>
Date: Tue, 14 Sep 2021 21:48:16 +0300
Subject: [PATCH] Update AUTHORS
---
AUTHORS | 1 +
1 file changed, 1 insertion(+)
diff --git a/AUTHORS b/AUTHORS
index b95c198..5a0ae6d 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -2,3 +2,4 @@ Rémi Denis-Courmont <remi (at) remlab (dot) net>
Pierre Ynard <linkfanel (at) yahoo (dot) fr>
Yin, Kwong-Sang
Fred L. Templim
+William A. Kennington III
--
2.33.0

View File

@ -0,0 +1,34 @@
From fd9549c0fb0e1916ca553a1abbeebd48f608955d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20H=C3=A4rdeman?= <david@hardeman.nu>
Date: Sun, 11 Feb 2024 18:29:15 +0100
Subject: [PATCH] Fix potential integer overflow in parsednssl()
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
optlen is a uint8_t because the length field in the RA header is one octet
(representing the length in units of 8 octets). Later optlen is multiplied by 8
to represent the length in bytes, meaning that the variable can overflow.
Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
---
src/ndisc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ndisc.c b/src/ndisc.c
index 1640794..b190b18 100644
--- a/src/ndisc.c
+++ b/src/ndisc.c
@@ -451,7 +451,7 @@ static int
parsednssl (const uint8_t *opt)
{
const uint8_t *base;
- uint8_t optlen = opt[1];
+ uint16_t optlen = opt[1];
if (optlen < 2)
return -1;
--
2.34.1

BIN
ndisc6-1.0.4.tar.bz2 Normal file

Binary file not shown.

64
ndisc6.spec Normal file
View File

@ -0,0 +1,64 @@
Name: ndisc6
Version: 1.0.4
Release: 5
Summary: IPv6 diagnostic tools
License: GPLv2 or GPLv3
URL: http://www.remlab.net/ndisc6
Source0: http://www.remlab.net/files/ndisc6/%{name}-%{version}.tar.bz2
Patch1: 0001-Update-AUTHORS.patch
Patch2: backport-Fix-potential-integer-overflow-in-parsednssl.patch
BuildRequires: gcc perl-generators
Requires: ndisc6-help
%description
NDisc6 is a small collection of useful tools for IPv6 networking.
It includes the follwing programs :
- ndisc6: ICMPv6 Neighbor Discovery tool
- rdisc6: ICMPv6 Router Discovery tool
- tcptraceroute6: lightweight IPv6 tcptraceroute
- traceroute6: IPv6 traceroute
- rdnssd: Recursive DNS Servers discovery Daemon
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --disable-suid-install
%make_build
%install
%make_install
%files
%defattr(-,root,root)
%doc AUTHORS README
%license COPYING
%{_sysconfdir}/rdnssd
%{_bindir}/*
%{_sbindir}/*
%{_datadir}/locale/*
%files help
%defattr(-,root,root)
%doc ChangeLog NEWS
%{_mandir}/man*
%changelog
* Tue Jan 7 2025 yinbin <yinbin8@huawei..com> - 1.0.4-5
- Fix potential integer overflow in parsednssl
* Sat Jan 7 2023 caofei <caofei@xfusion.com> - 1.0.4-4
- Update AUTHORS
* Tue Dec 15 2020 orange-snn <songnannan2@huawei.com> - 1.0.4-3
- move ndisc.spec to ndisc6.spec
* Fri Nov 6 2020 jialei <jialei17@huawei.com> - 1.0.4-2
- add help for Requires
* Thu Jan 7 2018 openEuler Buildteam <buildteam@openeuler.org> - 1.0.4-1
- Package init