Compare commits
10 Commits
3c9747b3e0
...
70a2c6a880
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
70a2c6a880 | ||
|
|
dabbd4876c | ||
|
|
79a8a5b804 | ||
|
|
660741a6a0 | ||
|
|
10acc2ede5 | ||
|
|
c69c05224d | ||
|
|
cf8985efa4 | ||
|
|
6b9120dd6d | ||
|
|
a58eaf4f50 | ||
|
|
b9a1d87f4f |
21
0001-Update-AUTHORS.patch
Normal file
21
0001-Update-AUTHORS.patch
Normal 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
|
||||||
|
|
||||||
34
backport-Fix-potential-integer-overflow-in-parsednssl.patch
Normal file
34
backport-Fix-potential-integer-overflow-in-parsednssl.patch
Normal 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
BIN
ndisc6-1.0.4.tar.bz2
Normal file
Binary file not shown.
64
ndisc6.spec
Normal file
64
ndisc6.spec
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user