From: Bram Moolenaar Date: Wed, 26 Oct 2011 09:41:00 +0000 (+0200) Subject: updated for version 7.3.348 X-Git-Tag: v7.3.348 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79739e163ba7f4b8fe1ad8374d24521b2e595331;p=vim updated for version 7.3.348 Problem: "call range(1, 947948399)" causes a crash. (ZyX) Solution: Avoid a loop in the out of memory message. --- diff --git a/src/misc2.c b/src/misc2.c index 4c05a8cb8..20ee1701b 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -1012,8 +1012,12 @@ do_outofmem_msg(size) { /* Don't hide this message */ emsg_silent = 0; - EMSGN(_("E342: Out of memory! (allocating %lu bytes)"), size); + + /* Must come first to avoid coming back here when printing the error + * message fails, e.g. when setting v:errmsg. */ did_outofmem_msg = TRUE; + + EMSGN(_("E342: Out of memory! (allocating %lu bytes)"), size); } } diff --git a/src/version.c b/src/version.c index 7c966e54b..9f5b06cc4 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 348, /**/ 347, /**/