From af56e7559d31cb9cb84b85a7dedd8e12cf1f06cd Mon Sep 17 00:00:00 2001 From: Roy Li Date: Wed, 15 Oct 2014 17:21:34 +0800 Subject: 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 Signed-off-by: Ross Burton --- meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb') diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb index c813d7f61e..f1ef6d9a0c 100644 --- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb +++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.0.bb @@ -31,6 +31,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/nfs-utils/${PV}/nfs-utils-${PV}.tar.x file://nfs-statd.service \ file://nfs-utils-Do-not-pass-CFLAGS-to-gcc-while-building.patch \ file://0001-statd-fixed-the-with-statdpath-flag.patch \ + file://fix-a-Gcc-undefined-behavior.patch \ " SRC_URI[md5sum] = "6e93a7997ca3a1eac56bf219adab72a8" -- cgit 1.2.3-korg