From: Wolfgang Denk Date: Mon, 09 Aug 2010 00:54:16 +0200 Subject: [U-Boot] [PATCH] getenv_f(): fix handling of too short buffers In-Reply-To: <1280002580-4087-1-git-send-email-wd@denx.de> References: <1280002580-4087-1-git-send-email-wd@denx.de> Message-ID: <20100808225416.D0EF21536EF@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1280002580-4087-1-git-send-email-wd@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 > --- > 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