libssh: fix some -Werror=strict-overflow build failures
authorBaruch Siach <baruch@tkos.co.il>
Tue, 22 Jan 2019 11:58:05 +0000 (13:58 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 22 Jan 2019 22:30:49 +0000 (23:30 +0100)
commit9952e3b56ef4de6a77b2e605add931800a3a2fb1
tree275954707ff30f92e72aea85485e6117e9cd8d5c
parent255f9172377f98da18ce8797e1ddf35f8f369373
libssh: fix some -Werror=strict-overflow build failures

Add fixes for some of the build failures caused by strict-overflow
warnings. Patches #1, #2, and #4 are upstream. Patch #3 is pending
upstream.

Fixes:
http://autobuild.buildroot.net/results/923/9239f230629ca4e381af5e8f43989997d9bfde99/
http://autobuild.buildroot.net/results/618/6187b92bcdfd9281683c37906ae74f2e0c5e6d0e/
http://autobuild.buildroot.net/results/9eb/9eb5ed92a923f0c038e3d913289eddc1cda1b62f/

Cc: Scott Fan <fancp2007@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libssh/0001-buffer-Fix-size-comparison-with-count.patch [new file with mode: 0644]
package/libssh/0002-buffer-Use-size_t-for-argc-argument-in-ssh_buffer_-u.patch [new file with mode: 0644]
package/libssh/0003-more-strict-overflow-fixes.patch [new file with mode: 0644]
package/libssh/0004-connect-Fix-size-type-for-i-an-j-in-ssh_select.patch [new file with mode: 0644]