diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-06 13:19:02 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 11:11:37 -0600 |
commit | 8156345dfec385d3fd394acb7ef9f78aca35f003 (patch) | |
tree | 33e7167c76f9e81f4ce0052652cee3de16a0c734 /lib | |
parent | d79c50af26d1f083478340182b0220d2f019944d (diff) | |
download | u-boot-imx-8156345dfec385d3fd394acb7ef9f78aca35f003.zip u-boot-imx-8156345dfec385d3fd394acb7ef9f78aca35f003.tar.gz u-boot-imx-8156345dfec385d3fd394acb7ef9f78aca35f003.tar.bz2 |
sandbox: Move CONFIG_SYS_VSNPRINTF to Kconfig
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index c9d2767..d7fd219 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -27,6 +27,15 @@ 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. + source lib/rsa/Kconfig menu "Hashing Support" |