Re: [OE-core] [PATCH] openssh: fix potential signed overflow to enable compilation with -ftrapv

2016-09-19 Thread Yu, Mingli
ping Thanks, On 2016年08月26日 09:57, Yuanjie Huang wrote: From: Yuanjie Huang 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

[OE-core] [PATCH] openssh: fix potential signed overflow to enable compilation with -ftrapv

2016-08-25 Thread Yuanjie Huang
From: Yuanjie Huang 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.