This fixes CVE-2019-11042 and CVE-2019-11041. Compile and run tested on mxs platform Signed-off-by: Michael Heimpold <mhei@heimpold.de>