Hello community,

here is the log from the commit of package dmtcp for openSUSE:Factory checked 
in at 2018-02-02 22:23:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dmtcp (Old)
 and      /work/SRC/openSUSE:Factory/.dmtcp.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dmtcp"

Fri Feb  2 22:23:37 2018 rev:26 rq:572057 version:2.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/dmtcp/dmtcp.changes      2018-01-19 
11:51:27.576597408 +0100
+++ /work/SRC/openSUSE:Factory/.dmtcp.new/dmtcp.changes 2018-02-02 
22:23:42.441883738 +0100
@@ -1,0 +2,7 @@
+Mon Jan 29 10:24:29 UTC 2018 - tchva...@suse.com
+
+- Add patch dmtcp-overflow.patch
+  * This is to not block post-build-checks and run all the scans
+    on the resulting package
+
+-------------------------------------------------------------------

New:
----
  dmtcp-overflow.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dmtcp.spec ++++++
--- /var/tmp/diff_new_pack.ATjBCn/_old  2018-02-02 22:23:43.277844716 +0100
+++ /var/tmp/diff_new_pack.ATjBCn/_new  2018-02-02 22:23:43.281844529 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package dmtcp
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2012-2014 Kapil Arya
 #
 # All modifications and additions to the file contributed by third parties
@@ -23,19 +23,13 @@
 Summary:        Checkpoint/Restart functionality for Linux processes
 License:        LGPL-3.0+
 Group:          System/Packages
-Url:            https://github.com/%{name}
+Url:            https://github.com/dmtcp/dmtcp
 Source0:        https://github.com/%{name}/%{name}/archive/%{version}.tar.gz
-
+Patch0:         dmtcp-overflow.patch
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
 BuildRequires:  glibc-devel
-BuildRequires:  python-base
-
-# Disable spurious destbufferoverflow warning.
-BuildRequires:  -post-build-checks
-
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-
+BuildRequires:  python2-base
 # This package is functional only on i386 and x86_64 architectures.
 ExclusiveArch:  %{ix86} x86_64
 
@@ -63,10 +57,12 @@
 
 %prep
 %setup -q
-sed -i -e 's,enable_option_checking=fatal,enable_option_checking=no,' configure
+%patch0 -p1
 
 %build
-%configure --docdir=%{_docdir}/%{name} --disable-option-checking
+%configure \
+    --docdir=%{_docdir}/%{name} \
+    --disable-option-checking
 make %{?_smp_mflags}
 
 %check
@@ -78,14 +74,13 @@
 sed -i -e's:\(runTest("syscall-tester"\):pass #\1:' test/autotest.py
 sed -i -e's:\(runTest("file\):pass #\1:' test/autotest.py
 sed -i -e's:\(runTest("posix-mq\):pass #\1:' test/autotest.py
-make AUTOTEST="--retry-once" check || :
+make %{?_smp_mflags} AUTOTEST="--retry-once" check || :
 %endif
 
 %install
 %make_install
 
 %files
-%defattr(-,root,root,-)
 %{_bindir}/dmtcp_*
 %{_bindir}/mtcp_restart
 %{_libdir}/%{name}
@@ -93,7 +88,6 @@
 %{_docdir}/%{name}
 
 %files -n dmtcp-devel
-%defattr(-,root,root,-)
 %{_includedir}/dmtcp.h
 
 %changelog

++++++ dmtcp-overflow.patch ++++++
Index: dmtcp-2.5.2/jalib/jsocket.cpp
===================================================================
--- dmtcp-2.5.2.orig/jalib/jsocket.cpp
+++ dmtcp-2.5.2/jalib/jsocket.cpp
@@ -175,7 +175,7 @@ bool jalib::JSocket::connect ( const  st
   struct sockaddr_storage addrbuf;
   memset ( &addrbuf,0,sizeof ( addrbuf ) );
   JASSERT ( addrlen <= sizeof ( addrbuf ) ) ( addrlen ) ( sizeof ( addrbuf ) );
-  memcpy ( &addrbuf,addr,addrlen );
+  memcpy ( &addrbuf,addr,addrlen+1 );
   JWARNING ( addrlen == sizeof ( sockaddr_in ) ) ( addrlen )
           ( sizeof ( sockaddr_in ) ).Text ( "may not be correct socket type" );
   if (port != -1) {

Reply via email to