Re: [U-Boot] [PATCH v6 4/4] Make printf and vprintf safe from buffer overruns

2011-12-17 Thread Wolfgang Denk
Dear Simon Glass, In message <1320263530-22843-5-git-send-email-...@chromium.org> you wrote: > From: Sonny Rao > > From: Sonny Rao > > utilize the added vscnprintf functions to avoid buffer overruns > The implementation is fairly dumb in that it doesn't detect > that the buffer is too small, b

[U-Boot] [PATCH v6 4/4] Make printf and vprintf safe from buffer overruns

2011-11-02 Thread Simon Glass
From: Sonny Rao From: Sonny Rao utilize the added vscnprintf functions to avoid buffer overruns The implementation is fairly dumb in that it doesn't detect that the buffer is too small, but at least will not cause crashes. Signed-off-by: Sonny Rao --- Changes in v2: - Use sizeof(printbuffer)