forked from pool/socat
Accepting request 969803 from 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'. (forwarded request 969720 from marxin) OBS-URL: https://build.opensuse.org/request/show/969803 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/socat?expand=0&rev=45
This commit is contained in:
commit
014b953530
13
socat-fix-asan-error.patch
Normal file
13
socat-fix-asan-error.patch
Normal 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) {
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user