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:
parent
2e440c666a
commit
c10e0ef738
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>
|
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
|
Source1: %{name}.changes
|
||||||
Patch1: socat-ignore-tests-failure-boo1078346.patch
|
Patch1: socat-ignore-tests-failure-boo1078346.patch
|
||||||
Patch2: socat-common-fixes.patch
|
Patch2: socat-common-fixes.patch
|
||||||
|
Patch3: socat-fix-asan-error.patch
|
||||||
BuildRequires: iputils
|
BuildRequires: iputils
|
||||||
BuildRequires: net-tools
|
BuildRequires: net-tools
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
@ -53,9 +54,7 @@ file descriptor (stdin etc.), the GNU line editor, a program, or a
|
|||||||
combination of two of these.
|
combination of two of these.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
sed 's|#! %{_bindir}/env bash|#!%{_bindir}/bash|' -i proxyecho.sh readline.sh
|
sed 's|#! %{_bindir}/env bash|#!%{_bindir}/bash|' -i proxyecho.sh readline.sh
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user