Initialize VKernelBuf to zero
authorhpa <hpa>
Wed, 6 Apr 2005 09:53:39 +0000 (09:53 +0000)
committerhpa <hpa>
Wed, 6 Apr 2005 09:53:39 +0000 (09:53 +0000)
NEWS
parseconfig.inc

diff --git a/NEWS b/NEWS
index 9071f35..dd969a0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ Changes in 3.08:
        * Simple menu system: add password support.
        * EXTLINUX: Sparse files now handled correctly.
        * EXTLINUX: Large directories now handled correctly.
+       * Fix configuration file parsing error, that could cause hangs.
 
 Changes in 3.07:
        * Fix chainloading (chain.c32).
index cad86b3..77caf84 100644 (file)
@@ -302,8 +302,13 @@ pc_getline:        mov di,trackbuf
 ; Main loop for configuration file parsing
 ;
 parse_config:
+               mov di,VKernelBuf               ; Clear VKernelBuf at start
+               xor ax,ax
+               mov cx,vk_size
+               rep stosb
+.again:
                call getcommand
-                jnc parse_config               ; If not EOF do it again
+                jnc .again                     ; If not EOF do it again
                ;
                ; The fall through to commit_vk to commit any final
                ; VKernel being read