]> code.ossystems Code Review - openembedded-core.git/commit
nfs-utils: fix a Gcc undefined behavior
authorRoy Li <rongqing.li@windriver.com>
Wed, 15 Oct 2014 09:21:34 +0000 (17:21 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Oct 2014 16:31:56 +0000 (17:31 +0100)
commitaf56e7559d31cb9cb84b85a7dedd8e12cf1f06cd
treef08040514d4733d0719e6ca4e46e9e4ac1c1e896
parentfc0668a019eca422540ceab3efcd2b2a27dd79e0
nfs-utils: fix a Gcc undefined behavior

Calling strncpy with NULL second argument, even when the size is 0,
is undefined behavior, which leads to GCC to drop the check old
variable with NULL in following code.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=6743

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-connectivity/nfs-utils/files/fix-a-Gcc-undefined-behavior.patch [new file with mode: 0644]
meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb