Accepting request 969720 from home:marxin:branches:network:utilities

- Use autosetup
- Add socat-fix-asan-error.patch that is offered to upstream
  and that fixes an ASAN error seen for 'test 313 NESTEDOVFL'.

OBS-URL: https://build.opensuse.org/request/show/969720
OBS-URL: https://build.opensuse.org/package/show/network:utilities/socat?expand=0&rev=60
This commit is contained in:
Marcus Meissner 2022-04-13 09:48:27 +00:00 committed by Git OBS Bridge
parent 2e440c666a
commit c10e0ef738
3 changed files with 22 additions and 3 deletions

View File

@ -0,0 +1,13 @@
diff --git a/error.c b/error.c
index 3135fd5..eacfec5 100644
--- a/error.c
+++ b/error.c
@@ -360,7 +360,7 @@ void msg2(
if (handler) bufp[-1] = tolower(bufp[-1]); /* for debugging, low chars indicate messages from signal handlers */
#endif
*bufp++ = ' ';
- strncpy(bufp, text, BUFLEN-(bufp-buff)-1);
+ strncpy(bufp, text, BUFLEN-(bufp-buff)-2);
strcat(bufp, "\n");
_msg(level, buff, syslp);
if (level >= diagopts.exitlevel) {

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Apr 13 07:41:15 UTC 2022 - Martin Liška <mliska@suse.cz>
- Use autosetup
- Add socat-fix-asan-error.patch that is offered to upstream
and that fixes an ASAN error seen for 'test 313 NESTEDOVFL'.
-------------------------------------------------------------------
Sat Jan 22 20:54:21 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -28,6 +28,7 @@ Source: http://www.dest-unreach.org/socat/download/%{name}-%{version}.ta
Source1: %{name}.changes
Patch1: socat-ignore-tests-failure-boo1078346.patch
Patch2: socat-common-fixes.patch
Patch3: socat-fix-asan-error.patch
BuildRequires: iputils
BuildRequires: net-tools
BuildRequires: openssl-devel
@ -53,9 +54,7 @@ file descriptor (stdin etc.), the GNU line editor, a program, or a
combination of two of these.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%autosetup
sed 's|#! %{_bindir}/env bash|#!%{_bindir}/bash|' -i proxyecho.sh readline.sh
%build