On Thu, Dec 19, 2013 at 03:14:19PM -0800, Darwin Rambo wrote:

> When CONFIG_SYS_VSNPRINTF is enabled, it protects print operations
> such as sprintf, snprintf, vsnprintf, etc., from buffer overflows.
> But vsnprintf_internal includes the terminating NULL character in
> the calculation of number of characters written. This affects sprintf
> and snprintf return values. Fix this issue by setting pointer 'str'
> back to the location of the '\0'.
> 
> Signed-off-by: Darwin Rambo <dra...@broadcom.com>
> Reviewed-by: Steve Rae <s...@broadcom.com>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to