Searched hist:d7255e8ddbfe76d7b0d18247d35742596c85ad93 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/arch/arm/cpu/armv7/vf610/ |
| H A D | generic.c | d7255e8ddbfe76d7b0d18247d35742596c85ad93 Wed Sep 28 09:29:28 UTC 2016 Stefan Agner <stefan.agner@toradex.com> ARM: vf610: use strcpy for soc environment variable
To create the soc environment variable we concatenate two strings on the stack. So far, strcat has been used for the first string as well as for the second string. Since the variable on the stack is not initialized, the first strcat may not start using the first entry in the character array. This then could lead to an buffer overflow on the stack.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
|