diff options
author | Tom Rini <trini@konsulko.com> | 2016-01-14 13:02:03 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-19 08:31:16 -0500 |
commit | 947c626dc5bfbc232cc0f41d16fa213a885ad234 (patch) | |
tree | 4d1f6443abd9dd3cb74ab5a8abb6f7e7a46d82cc /lib/Kconfig | |
parent | 9c11135ce053904f4caadc27760f214425d9881a (diff) | |
download | u-boot-imx-947c626dc5bfbc232cc0f41d16fa213a885ad234.zip u-boot-imx-947c626dc5bfbc232cc0f41d16fa213a885ad234.tar.gz u-boot-imx-947c626dc5bfbc232cc0f41d16fa213a885ad234.tar.bz2 |
vsprintf.c: Always enable CONFIG_SYS_VSNPRINTF
Enabling this function always removes some class of string saftey issues.
The size change here in general is about 400 bytes and this seems a reasonable
trade-off.
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Peter Robinson <pbrobinson@gmail.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Adrian Alonso <aalonso@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r-- | lib/Kconfig | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 9d580e4..46d7034 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -27,15 +27,6 @@ config SYS_HZ get_timer() must operate in milliseconds and this option must be set to 1000. -config SYS_VSNPRINTF - bool "Enable safe version of sprintf()" - help - Since sprintf() can overflow its buffer, it is common to use - snprintf() instead, which knows the buffer size and can avoid - overflow. However, this does increase code size slightly (for - Thumb-2, about 420 bytes). Enable this option for safety when - using sprintf() with data you do not control. - config USE_TINY_PRINTF bool "Enable tiny printf() version" help |