From 957235cf19a691360c720f7913672adda4258ed0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 7 Oct 2018 11:03:14 +0100 Subject: gentoo resync : 07.10.2018 --- .../libssh/files/libssh-0.8.3-strict-overflow.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 net-libs/libssh/files/libssh-0.8.3-strict-overflow.patch (limited to 'net-libs/libssh/files') diff --git a/net-libs/libssh/files/libssh-0.8.3-strict-overflow.patch b/net-libs/libssh/files/libssh-0.8.3-strict-overflow.patch new file mode 100644 index 000000000000..93b15ec061b8 --- /dev/null +++ b/net-libs/libssh/files/libssh-0.8.3-strict-overflow.patch @@ -0,0 +1,21 @@ +Neither i nor j are ever counted downward for the array pointers, so assume +they were intended to be signed integers. + +Fixes a compiler warning on HPPA triggering an error because of +-Werror=strict-overflow -Wstrict-overflow=2: + +src/connect.c:509:7: error: assuming signed overflow does not occur when +simplifying conditional to constant [-Werror=strict-overflow] + if(j != 0) + ^ +--- a/src/connect.c ++++ b/src/connect.c +@@ -471,7 +471,7 @@ + fd_set *readfds, struct timeval *timeout) { + fd_set origfds; + socket_t fd; +- int i,j; ++ unsigned int i,j; + int rc; + int base_tm, tm; + struct ssh_timestamp ts; -- cgit v1.2.3