]> code.ossystems Code Review - openembedded-core.git/commit
openssh: fix potential signed overflow to enable compilation with -ftrapv
authorYuanjie Huang <yuanjie.huang@windriver.com>
Fri, 26 Aug 2016 01:57:33 +0000 (09:57 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Sep 2016 14:10:36 +0000 (15:10 +0100)
commit2ce02941300aa3e826df0c59fd8d4ce19950028e
treebd2697f0ae74ed16ed96c269f4a68fcbaa00def8
parentc687c9fcc010947f52e1cd153ea74ae5f6343ca4
openssh: fix potential signed overflow to enable compilation with -ftrapv

Pointer arithmatic results in implementation defined signed integer
type, so that 's - src' in strlcpy and others may trigger signed overflow.
In case of compilation by gcc or clang with -ftrapv option, the overflow
would lead to program abort.

Upstream-status: Submitted [https://bugzilla.mindrot.org/show_bug.cgi?id=2608]

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-connectivity/openssh/openssh/fix-potential-signed-overflow-in-pointer-arithmatic.patch [new file with mode: 0644]
meta/recipes-connectivity/openssh/openssh_7.3p1.bb