Accepting request 68832 from home:namtrac:branches:Base:System

Fix possible memcpy overflow, found by gcc 4.6

OBS-URL: https://build.opensuse.org/request/show/68832
OBS-URL: https://build.opensuse.org/package/show/Base:System/rsyslog?expand=0&rev=51
This commit is contained in:
2011-04-29 12:54:06 +00:00
committed by Git OBS Bridge
parent 15ed19ad3b
commit 4bab856a1b
3 changed files with 20 additions and 0 deletions

View File

@@ -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))

View File

@@ -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

View File

@@ -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,
@@ -258,6 +260,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.