[U-Boot] [PATCH] common/cmd_nvedit.c: Fix size calculation in do_env_import()

Wolfgang Denk wd at denx.de
Sat Dec 17 21:05:32 CET 2011


Dear Horst Kronstorfer,

In message <1324114390-27290-1-git-send-email-hkronsto at frequentis.com> you wrote:
> do_env_import() missed the final '\0' terminator when calculating the
> size of an environment data block.  This led to an erroneous 'bad CRC,
> import failed' message for a checksum protected environment (-c.)

Can you please describe a test case that shows this bug?

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
God made the integers; all else is the work of Man.       - Kronecker


More information about the U-Boot mailing list