Skip to content

Tags: xen-troops/optee_os

Tags

20160825-for-lmg

Toggle 20160825-for-lmg's commit message
libfdt: undef sanitizer fix fdt_setprop()

Fixes undefined sanitizer problem in fdt_setprop().

The compiler (gcc 5.3) issues some runtime checks with
-fsanitize=undefined which is triggered if for instance any of the
pointers supplied to memcpy() is NULL as val can be in fdt_setprop() if
there's no value.

Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Tested-by: Jens Wiklander <jens.wiklander@linaro.org> (QEMUv7)
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>