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

Kumar Gala galak at kernel.crashing.org
Fri Sep 23 20:36:25 CEST 2011


On Sep 23, 2011, at 12:38 PM, Simon Glass wrote:

> From: Sonny Rao <sonnyrao at chromium.org>
> 
> From: Sonny Rao <sonnyrao at chromium.org>
> 
> 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: Simon Glass <sjg at chromium.org>
> ---
> common/console.c |   10 +++++-----
> 1 files changed, 5 insertions(+), 5 deletions(-)

If these are from Sonny, they really should have a Signed-off-by from him.

- k


More information about the U-Boot mailing list