Re: [U-Boot] [PATCH v2 3/3] test: Add a test for snprintf() and the banner/version

2017-06-12 Thread Bin Meng
On Sun, Jun 11, 2017 at 1:59 AM, Simon Glass wrote: > Add a simple test to make sure that these functions obey the buffer size > passed into them. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix buffer overflow problem when there is not enough space for the build tag > - Add test

[U-Boot] [PATCH v2 3/3] test: Add a test for snprintf() and the banner/version

2017-06-10 Thread Simon Glass
Add a simple test to make sure that these functions obey the buffer size passed into them. Signed-off-by: Simon Glass --- 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/