From 4a6639e8eac440b3cba7c505ff15d1bfbda9b5964392bdb8a63eb38d544244df Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 5 May 2011 08:05:34 +0000 Subject: [PATCH] Accepting request 69430 from Base:System Fix gcc 4.6 compilation OBS-URL: https://build.opensuse.org/request/show/69430 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rsyslog?expand=0&rev=28 --- rsyslog-5.8.0-memcpy.patch | 11 +++++++++++ rsyslog.changes | 6 ++++++ rsyslog.spec | 3 +++ 3 files changed, 20 insertions(+) create mode 100644 rsyslog-5.8.0-memcpy.patch diff --git a/rsyslog-5.8.0-memcpy.patch b/rsyslog-5.8.0-memcpy.patch new file mode 100644 index 0000000..b1d19e1 --- /dev/null +++ b/rsyslog-5.8.0-memcpy.patch @@ -0,0 +1,11 @@ +--- runtime/net.c 2011-03-22 12:27:49.000000000 +0100 ++++ runtime/net.c 2011-04-29 13:30:47.249997266 +0200 +@@ -721,7 +721,7 @@ + SIN(allowIP.addr.NetAddr)->sin_port = 0; + memcpy(&(SIN(allowIP.addr.NetAddr)->sin_addr.s_addr), + &(SIN6(res->ai_addr)->sin6_addr.s6_addr32[3]), +- sizeof (struct sockaddr_in)); ++ sizeof (in_addr_t)); + + if((iRet = AddAllowedSenderEntry(ppRoot, ppLast, &allowIP, + iSignificantBits)) diff --git a/rsyslog.changes b/rsyslog.changes index 52a9665..f0b7149 100644 --- a/rsyslog.changes +++ b/rsyslog.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 29 11:38:40 UTC 2011 - idoenmez@novell.com + +- Add rsyslog-5.6.5-memcpy.patch: fix overflowing memcpy call in + runtime/net.c + ------------------------------------------------------------------- Wed Apr 27 16:19:31 UTC 2011 - mrueckert@suse.de diff --git a/rsyslog.spec b/rsyslog.spec index c12e2b8..8fe6d2b 100644 --- a/rsyslog.spec +++ b/rsyslog.spec @@ -105,6 +105,8 @@ Source1: rsyslog.sysconfig Source2: rsyslog.conf.in Source3: rsyslog.early.conf.in Source4: rsyslog.d.remote.conf.in +# PATCH-FIX-UPSTREAM rsyslog-5.6.5-memcpy.patch idoenmez@suse.de -- Fix overflowing memcpy call +Patch1: rsyslog-5.8.0-memcpy.patch %description Rsyslog is an enhanced multi-threaded syslogd supporting, among others, @@ -265,6 +267,7 @@ This module provides a UDP forwarder that allows changing the sender address. %prep %setup -q -n %{name}-%{upstream_version} +%patch1 %if %{with systemd} # Bug: https://bugzilla.novell.com/show_bug.cgi?id=656259 # install the files systemd provides rather than what we provide.