[U-Boot] [PATCH] getenv_f(): fix handling of too short buffers

Wolfgang Denk wd at denx.de
Mon Aug 9 00:54:16 CEST 2010


In message <1280002580-4087-1-git-send-email-wd at denx.de> you wrote:
> Fix error handling in getenv_f() when the user provided buffer is too
> short to hold the variable name; make sure to truncate and
> NUL-terminate without overwriting the buffer limits.
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
>  common/cmd_nvedit.c |   18 ++++++++++++------
>  1 files changed, 12 insertions(+), 6 deletions(-)

Applied.

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
You've no idea of what a poor opinion  I  have  of  myself,  and  how
little I deserve it.                                  - W. S. Gilbert


More information about the U-Boot mailing list