[U-Boot] [PATCH v3 3/6] test: Add a test for snprintf() and the banner/version
sjg at google.com
sjg at google.com
Thu Jul 6 14:52:01 UTC 2017
On Fri, Jun 16, 2017 at 11:37 AM, Simon Glass <sjg at chromium.org> wrote:
> Add a simple test to make sure that these functions obey the buffer size
> passed into them.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3: None
> Changes in v2:
> - Fix buffer overflow problem when there is not enough space for the build tag
> - Add test to check for buffer overflow problems
>
> test/Makefile | 1 +
> test/print_ut.c | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 84 insertions(+)
> create mode 100644 test/print_ut.c
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list