From: Chen Gang Date: Mon, 27 May 2013 09:55:13 +0000 (+0800) Subject: arch: s390: appldata: using strncpy() and strnlen() instead of sprintf() X-Git-Tag: v3.10-rc5~35^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5b4c2f4938aaebc392669111385c3cf50dd309f;p=pandora-kernel.git arch: s390: appldata: using strncpy() and strnlen() instead of sprintf() 'buf[2]' is 2 bytes length, and sprintf() will append '\0' at the end of string "?\n", so original implementation is memory overflow. Need use strncpy() and strnlen() instead of sprintf(). Signed-off-by: Chen Gang Signed-off-by: Gerald Schaefer Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed