Compare commits

..

14 Commits

Author SHA1 Message Date
openeuler-ci-bot
093acf2a39
!18 delete redundant files
From: @zppzhangpan 
Reviewed-by: @sunsuwan 
Signed-off-by: @sunsuwan
2024-06-05 08:00:14 +00:00
zhangpan
c3b128f134 delete redundant files 2024-06-05 06:15:44 +00:00
openeuler-ci-bot
cc7df1f9d3
!14 [sync] PR-12: 回合上游补丁
From: @openeuler-sync-bot 
Reviewed-by: @robertxw 
Signed-off-by: @robertxw
2024-02-20 06:49:17 +00:00
lvgenggeng
843970b945 backport: fix possible overflows
Signed-off-by: lvgenggeng <lvgenggeng@uniontech.com>
(cherry picked from commit 63e91864340cccb5fbb78f1efa2b0a9db56c9544)
2024-02-17 16:47:28 +08:00
openeuler-ci-bot
078746132c !6 【LTS升级】update libnet to 1.2
Merge pull request !6 from yu_boyun/openEuler-20.03-LTS
2020-08-28 15:00:45 +08:00
yu_boyun
11b1b54585 Merge branch 'openEuler-20.03-LTS' of https://gitee.com/yu_boyun/libnet into openEuler-20.03-LTS 2020-08-19 14:21:04 +08:00
yu_boyun
8387788de2 !2 update
Merge pull request !2 from yu_boyun/master
2020-08-19 14:07:52 +08:00
yu_boyun
32ac362e04 update to 1.2 2020-08-13 17:16:14 +08:00
yu_boyun
1261167375 !1 update
Merge pull request !1 from yu_boyun/master
2020-08-13 17:03:16 +08:00
openeuler-ci-bot
32bd7c5c6a !1 Upgrade to latest version of libnet
Merge pull request !1 from 木得感情的openEuler机器人/master
2020-07-29 20:37:44 +08:00
Shinwell Hu
eceb8e6555 build requires graphviz 2020-07-29 05:09:57 +00:00
Shinwell Hu
40943aa290 buildrequires doxygen 2020-07-29 04:00:42 +00:00
Shinwell Hu
35638c756d update url and source 2020-06-02 14:38:02 +00:00
Shinwell Hu
410f403b58 upgrade libnet to 1.2 2020-06-02 14:30:34 +00:00
5 changed files with 55 additions and 14 deletions

View File

@ -0,0 +1,37 @@
From 425162fb7a9577f212d44c1b6f6e2ccc36acf131 Mon Sep 17 00:00:00 2001
From: Thomas Habets <habets@google.com>
Date: Fri, 1 Nov 2019 17:08:08 +0000
Subject: [PATCH 1/1] Fix possible overflows
---
src/libnet_port_list.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/libnet_port_list.c b/src/libnet_port_list.c
index fff151e..942a856 100644
--- a/src/libnet_port_list.c
+++ b/src/libnet_port_list.c
@@ -250,16 +250,17 @@ libnet_plist_chain_dump_string(libnet_plist_t *plist)
{
if (plist->bport == plist->eport)
{
- i = snprintf(&buf[j], BUFSIZ, "%d", plist->bport);
+ i = snprintf(&buf[j], BUFSIZ-j, "%d", plist->bport);
}
else
{
- i = snprintf(&buf[j], BUFSIZ, "%d-%d", plist->bport, plist->eport);
+ i = snprintf(&buf[j], BUFSIZ-j, "%d-%d", plist->bport, plist->eport);
}
j += i;
if (plist->next)
{
- snprintf(&buf[j++], BUFSIZ, ",");
+ snprintf(&buf[j], BUFSIZ-j, ",");
+ j++;
}
}
return (strdup(buf)); /* XXX - reentrancy == no */
--
2.20.1

Binary file not shown.

BIN
libnet-1.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,11 +1,12 @@
Name: libnet
Version: 1.1.6
Release: 17
Version: 1.2
Release: 3
Summary: A C library to help with construction and handling of network packets
License: BSD
URL: http://www.sourceforge.net/projects/libnet-dev/
Source: http://downloads.sourceforge.net/libnet-dev/%{name}-%{version}.tar.gz
BuildRequires: automake autoconf libtool
URL: https://github.com/libnet/libnet/
Source: https://github.com/libnet/libnet/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0: backport-Fix-possible-overflows.patch
BuildRequires: automake autoconf libtool
%description
Libbet provides a fairly portable framework for network packet
@ -55,21 +56,28 @@ rm -f doc/html/Makefile*
%postun -p /sbin/ldconfig
%files
%doc doc/COPYING
%{_libdir}/%{name}.so.*
%files devel
%doc __dist_sample/sample/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_bindir}/%{name}-config
%{_includedir}/%{name}/
%{_includedir}/libnet.h
%files help
%doc README doc/CHANGELOG doc/CONTRIB doc/DESIGN_NOTES doc/MIGRATION
%doc doc/PACKET_BUILDING doc/RAWSOCKET_NON_SEQUITUR doc/TODO doc/html/
%{_mandir}/man3/%{name}*.3*
%doc README.md ChangeLog.md doc/MIGRATION.md doc/RAWSOCKET.md
%doc %{_docdir}/*
%changelog
* Wed Jun 05 2024 zhangpan<zhangpan103@h-partners.com> - 1.2-3
- delete redundant files
* Wed Dec 27 2023 lvgenggeng<lvgenggeng@uniontech.com> - 1.2-2
- backport: fix possible overflows
* Wed Aug 19 2020 yuboyun<yuboyun@huawei.com> - 1.2-1
- Update to version 1.2
* Tue Sep 17 2019 Yiru Wang <wangyiru1@huawei.com> - 1.1.6-17
- Pakcage init

View File

@ -1,4 +0,0 @@
version_control: github
src_repo: libnet/libnet
tag_prefix: v
seperator: .