]> granicus.if.org Git - vim/commitdiff
patch 9.0.0468: exectution stack underflow without the +eval feature v9.0.0468
authorBram Moolenaar <Bram@vim.org>
Thu, 15 Sep 2022 11:20:18 +0000 (12:20 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 15 Sep 2022 11:20:18 +0000 (12:20 +0100)
Problem:    Exectution stack underflow without the +eval feature. (Dominique
            PellĂ©)
Solution:   Add to execution stack without FEAT_EVAL. (closes #11135)

src/scriptfile.c
src/version.c

index 34683262a50318e93a58b3e0d13b68264811678d..bdb7922363ac34a72c9dd4362e1787898093fa72 100644 (file)
@@ -1639,6 +1639,9 @@ do_source_ext(
        }
     }
 # endif
+#else
+    // Keep the sourcing name/lnum, for recursive calls.
+    estack_push(ETYPE_SCRIPT, fname_exp, 0);
 #endif
 
     cookie.conv.vc_type = CONV_NONE;           // no conversion
index 6431957926794d3bf7a10733a4a01a7e5801031f..82a21df039b3a70c27bb2802e1a86192fcbd0172 100644 (file)
@@ -703,6 +703,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    468,
 /**/
     467,
 /**/