From: H. Peter Anvin Date: Wed, 16 Jul 2008 18:25:57 +0000 (-0700) Subject: parseconfig: fix invalid mangle_name assumption X-Git-Tag: syslinux-3.71-pre12~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e93f6b57fb74ff53b1cbdf3cfaff1e8b3642046;p=platform%2Fupstream%2Fsyslinux.git parseconfig: fix invalid mangle_name assumption Remove assumption that mangle_name leaves DI beyond the end of the buffer. This was true back when the mangled filename buffer was an 11-byte DOS filename, but it is definitely not true anymore. Signed-off-by: H. Peter Anvin --- diff --git a/core/parseconfig.inc b/core/parseconfig.inc index e004cab..2975a8b 100644 --- a/core/parseconfig.inc +++ b/core/parseconfig.inc @@ -311,7 +311,7 @@ pc_label: call commit_vk ; Commit any current vkernel call mangle_name ; Mangle virtual name mov byte [VKernel],1 ; We've seen a "label" statement mov si,VKernelBuf+vk_vname ; By default, rname == vname - ; mov di,VKernelBuf+vk_rname ; -- already set + mov di,VKernelBuf+vk_rname mov cx,FILENAME_MAX rep movsb mov si,AppendBuf ; Default append==global append