Hello community,
here is the log from the commit of package packit for openSUSE:Factory checked in at 2019-04-23 14:36:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/packit (Old)
and /work/SRC/openSUSE:Factory/.packit.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "packit"
Tue Apr 23 14:36:20 2019 rev:3 rq:696808 version:1.6.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/packit/packit.changes 2017-06-04 02:00:47.847998506 +0200
+++ /work/SRC/openSUSE:Factory/.packit.new.5536/packit.changes 2019-04-23 14:36:26.377488239 +0200
@@ -1,0 +2,10 @@
+Mon Apr 22 17:36:19 UTC 2019 - Luigi Baldoni
+
+- Update to version 1.6.1
+ * Updated manpage.
+ version 1.6
+ * Added rights for Edward Betts and Sander Kleijwegt.
+ * Updated URLs for libnet and libpcap in configure.ac.
+ * Avoid buffer overrun when formatting hex payload.
+
+-------------------------------------------------------------------
Old:
----
packit-1.5.tar.gz
New:
----
packit-1.6.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ packit.spec ++++++
--- /var/tmp/diff_new_pack.6zmU1F/_old 2019-04-23 14:36:26.893488583 +0200
+++ /var/tmp/diff_new_pack.6zmU1F/_new 2019-04-23 14:36:26.897488585 +0200
@@ -1,7 +1,7 @@
#
# spec file for package packit
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,23 +12,22 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: packit
-Version: 1.5
+Version: 1.6.1
Release: 0
Summary: Network injection and capture
-License: GPL-2.0+
+License: GPL-2.0-or-later
Group: Productivity/Networking/Diagnostic
-Url: https://github.com/eribertomota/packit
+URL: https://github.com/eribertomota/packit
Source0: https://github.com/eribertomota/packit/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libnet-devel
BuildRequires: libpcap-devel
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Packit (Packet toolkit) is a network auditing tool. It
@@ -50,8 +49,8 @@
%make_install
%files
-%defattr(-,root,root)
-%doc ChangeLog LICENSE README.md docs/ICMP.txt
+%license LICENSE
+%doc ChangeLog README.md docs/ICMP.txt
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8%{ext_man}
++++++ packit-1.5.tar.gz -> packit-1.6.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/AUTHORS new/packit-1.6.1/AUTHORS
--- old/packit-1.5/AUTHORS 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/AUTHORS 2019-01-26 01:03:57.000000000 +0100
@@ -1,4 +1,9 @@
+AUTHORS AND CONTRIBUTORS
+------------------------
+
Darren Bounds
+Edward Betts
Joao Eriberto Mota Filho
Robert Krause
+Sander Kleijwegt
Sharad B
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/ChangeLog new/packit-1.6.1/ChangeLog
--- old/packit-1.5/ChangeLog 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/ChangeLog 2019-01-26 01:03:57.000000000 +0100
@@ -1,4 +1,24 @@
+Version 1.6.1, 2019-01-25
+-------------------------
+
+ [ Joao Eriberto Mota Filho ], eriberto@eriberto.pro.br
+
+* Updated manpage.
+
+Version 1.6, 2019-01-25
+-----------------------
+
+ [ Joao Eriberto Mota Filho ], eriberto@eriberto.pro.br
+
+* Added rights for Edward Betts and Sander Kleijwegt.
+* Updated URLs for libnet and libpcap in configure.ac.
+
+ [ Sander Kleijwegt ],
+
+* Avoid buffer overrun when formatting hex payload.
+
Version 1.5, 2017-01-18
+-----------------------
[ Joao Eriberto Mota Filho ],
@@ -21,6 +41,7 @@
* Prefixing all global variables with "g_" to improve code readability.
Version 1.1-beta1, 2016-05-22
+-----------------------------
[ Joao Eriberto Mota Filho ], , 2016
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/configure.ac new/packit-1.6.1/configure.ac
--- old/packit-1.5/configure.ac 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/configure.ac 2019-01-26 01:03:57.000000000 +0100
@@ -25,7 +25,7 @@
# packit official page at https://github.com/eribertomota/packit
AC_PREREQ([2.69])
-AC_INIT([packit], [1.5], [https://github.com/eribertomota/packit/issues])
+AC_INIT([packit], [1.6], [https://github.com/eribertomota/packit/issues])
AC_CONFIG_SRCDIR([src/main.c])
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS(config.h)
@@ -144,7 +144,7 @@
AC_CHECK_HEADERS(libnet.h,, LIBNET="no")
if test "$LIBNET" = "no"; then
echo ""
- echo "Error: Can't find libnet 1.1.0 or greater. Visit http://www.packetfactory.net/libnet for the latest version."
+ echo "Error: Can't find libnet 1.1.0 or greater. Visit https://github.com/sam-github/libnet for the latest version."
exit;
fi
@@ -159,7 +159,7 @@
AC_CHECK_HEADERS(pcap.h,, LIBPCAP="no")
if test "$LIBNET" = "no"; then
echo ""
- echo "Error: Can't find Libpcap. Visit http://www.tcpdump.org for the latest version."
+ echo "Error: Can't find Libpcap. Visit https://github.com/the-tcpdump-group/libpcap for the latest version."
exit;
fi
@@ -179,7 +179,7 @@
AC_CHECK_LIB(net, libnet_build_ipv4,, LIBNET="no")
if test "$LIBNET" = "no"; then
echo ""
- echo "Error: Can't find libnet 1.1.0 or greater. Visit http://www.packetfactory.net/libnet for the latest version."
+ echo "Error: Can't find libnet 1.1.0 or greater. Visit https://github.com/sam-github/libnet for the latest version."
exit;
fi
@@ -194,7 +194,7 @@
AC_CHECK_LIB(pcap, pcap_open_live,, LIBPCAP="no")
if test "$LIBPCAP" = "no"; then
echo ""
- echo "Error: Can't find Libpcap. Visit http://www.tcpdump.org for the latest version."
+ echo "Error: Can't find Libpcap. Visit https://github.com/the-tcpdump-group/libpcap for the latest version."
exit;
else
AC_CHECK_LIB(pcap, pcap_setnonblock,, SETNONBLOCK="no")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/docs/UPDATE-CHECK new/packit-1.6.1/docs/UPDATE-CHECK
--- old/packit-1.5/docs/UPDATE-CHECK 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/docs/UPDATE-CHECK 2019-01-26 01:03:57.000000000 +0100
@@ -5,7 +5,6 @@
- AUTHORS
- ChangeLog
-- CREDITS
- configure.ac (VERSION)
- manpage (VERSION)
- src/version.h.in (P_VERSION)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/man/generate-man.sh new/packit-1.6.1/man/generate-man.sh
--- old/packit-1.5/man/generate-man.sh 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/man/generate-man.sh 2019-01-26 01:03:57.000000000 +0100
@@ -4,11 +4,11 @@
# Copyright 2016 Joao Eriberto Mota Filho
# This file is under BSD-3-Clause
-P_DATA="19 Jan 2017"
+P_DATA="25 Jan 2019"
P_NAME=packit
-P_VERSION=1.5
+P_VERSION=1.6
P_MANLEVEL=8
-P_DESCRIPT="Packet analysis and injection tool"
+P_DESCRIPT="Network packet generator and capture tool "
TEST=$(txt2man -h 2> /dev/null)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/man/packit.8 new/packit-1.6.1/man/packit.8
--- old/packit-1.5/man/packit.8 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/man/packit.8 2019-01-26 01:03:57.000000000 +0100
@@ -1,7 +1,7 @@
.\" Text automatically generated by txt2man
-.TH packit 8 "19 Jan 2017" "packit-1.5" "Packet analysis and injection tool"
+.TH packit 8 "25 Jan 2019" "packit-1.6" "Network packet generator and capture tool "
.SH NAME
-\fBPackit \fP- packet analysis and injection tool
+\fBPackit \fP- network packet generator and capture tool
\fB
.SH SYNOPSIS
.nf
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/man/packit.txt new/packit-1.6.1/man/packit.txt
--- old/packit-1.5/man/packit.txt 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/man/packit.txt 2019-01-26 01:03:57.000000000 +0100
@@ -1,5 +1,5 @@
NAME
- Packit - packet analysis and injection tool
+ Packit - network packet generator and capture tool
SYNOPSIS
Packet capture:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/src/inject_defs.h new/packit-1.6.1/src/inject_defs.h
--- old/packit-1.5/src/inject_defs.h 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/src/inject_defs.h 2019-01-26 01:03:57.000000000 +0100
@@ -6,6 +6,7 @@
* Copyright 2002-2004 Darren Bounds
* Copyright 2013 Mats Erik Andersson
* Copyright 2016-2017 Robert Krause
+ * Copyright 2017 Edward Betts
* Copyright 2017 Sharad B
*
* This program is free software; you can redistribute it and/or
@@ -127,7 +128,7 @@
u_int8_t *mask; /* icmp4 mask */
u_int32_t otime; /* original timestamp */
- u_int32_t rtime; /* recieved timestamp */
+ u_int32_t rtime; /* received timestamp */
u_int32_t ttime; /* transmit timestamp */
} g_i4hdr_o;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/src/injection.c new/packit-1.6.1/src/injection.c
--- old/packit-1.5/src/injection.c 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/src/injection.c 2019-01-26 01:03:57.000000000 +0100
@@ -6,6 +6,7 @@
* Copyright 2002 Darren Bounds
* Copyright 2017 Robert Krause
* Copyright 2017 Sharad B
+ * Copyright 2019 Sander Kleijwegt
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -58,7 +59,7 @@
if(g_hex_payload)
{
- if((g_payload_len = format_hex_payload(g_payload)) == 0)
+ if((g_payload_len = format_hex_payload((char *)g_payload)) == 0)
fprintf(stdout, "Warning: Hex payload formatted incorrectly.\n");
}
else if(g_payload)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/src/utils.c new/packit-1.6.1/src/utils.c
--- old/packit-1.5/src/utils.c 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/src/utils.c 2019-01-26 01:03:57.000000000 +0100
@@ -7,6 +7,7 @@
* Copyright 2015 Gentoo Linux
* Copyright 2016-2017 Robert Krause
* Copyright 2017 Sharad B
+ * Copyright 2019 Sander Kleijwegt
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -650,9 +651,9 @@
return string;
}
-u_int32_t format_hex_payload(u_int8_t *string)
+u_int32_t format_hex_payload(char *string)
{
- u_int8_t pl[65535];
+ char *pl;
char *i, *delim = " ";
char tchar[2];
long c;
@@ -662,21 +663,21 @@
fprintf(stdout, "DEBUG: format_hex_payload()\n");
#endif
- memcpy(pl, string, 65535);
+ pl = strdup(string);
pl[0] = pl[1] = 20;
- memset(string, 0, 65535);
+ memset(string, 0, strlen(string));
memset(tchar, 0, 2);
/*
* skip the first 3 chars because we know they are spaces
*/
- for(i = strtok((char*)(pl+3), delim); i; i = strtok(NULL, delim)) {
+ for(i = strtok(pl+3, delim); i; i = strtok(NULL, delim)) {
if((c = strtol(i, 0, 16)) > 0xff)
return 0;
sprintf(tchar,"%c",(u_int8_t)c);
- strncpy((char*)(string+len),tchar,2);
+ strncpy(string+len,tchar,2);
len++;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/src/utils.h new/packit-1.6.1/src/utils.h
--- old/packit-1.5/src/utils.h 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/src/utils.h 2019-01-26 01:03:57.000000000 +0100
@@ -5,6 +5,7 @@
*
* Copyright 2002 Darren Bounds
* Copyright 2016-2017 Robert Krause
+ * Copyright 2019 Sander Kleijwegt
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -40,7 +41,7 @@
char *retrieve_icmp_type(u_int16_t);
char *retrieve_icmp_code(u_int16_t, u_int16_t);
u_int8_t *generate_padding(u_int16_t, u_int16_t);
-u_int32_t format_hex_payload(u_int8_t *);
+u_int32_t format_hex_payload(char *);
u_int16_t parse_port_range(char *);
u_int16_t retrieve_datalink_hdr_len(u_int32_t);
u_int32_t retrieve_rand_int(u_int32_t);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/packit-1.5/src/version.h.in new/packit-1.6.1/src/version.h.in
--- old/packit-1.5/src/version.h.in 2017-01-19 23:33:00.000000000 +0100
+++ new/packit-1.6.1/src/version.h.in 2019-01-26 01:03:57.000000000 +0100
@@ -24,6 +24,6 @@
* packit official page at https://github.com/eribertomota/packit
*/
-#define P_VERSION "1.5"
+#define P_VERSION "1.6"
#define P_AUTHOR "Darren Bounds, Eriberto Mota and others"
#define P_SITE "https://github.com/eribertomota/packit"