[U-Boot] [PATCH 1/2] console: Fix console buffer overrun

Wolfgang Denk wd at denx.de
Sun Mar 21 18:58:11 CET 2010


Dear John Schmoller,

In message <69e2af90a136fea8e81009f4d58ffe28eddf7362.1268408614.git.jschmoller at xes-inc.com> you wrote:
> When CONFIG_SYS_CBSIZE equals MAX_CMDBUF_SIZE, a command string of
> maximum length will overwrite part of the history buffer, causing the
> board to die. Expand the console_buffer and hist_lines buffer by one
> character each to hold the missing NULL char.
> 
> Signed-off-by: John Schmoller <jschmoller at xes-inc.com>
> ---
>  common/main.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Applied to "next" branch. Thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Every solution breeds new problems.


More information about the U-Boot mailing list