Skip to content

Commit 26a7f66

Browse files
committed
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.
1 parent a1024b1 commit 26a7f66

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/misc2.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,8 +1012,12 @@ do_outofmem_msg(size)
10121012
{
10131013
/* Don't hide this message */
10141014
emsg_silent = 0;
1015-
EMSGN(_("E342: Out of memory! (allocating %lu bytes)"), size);
1015+
1016+
/* Must come first to avoid coming back here when printing the error
1017+
* message fails, e.g. when setting v:errmsg. */
10161018
did_outofmem_msg = TRUE;
1019+
1020+
EMSGN(_("E342: Out of memory! (allocating %lu bytes)"), size);
10171021
}
10181022
}
10191023

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ static char *(features[]) =
714714

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
348,
717719
/**/
718720
347,
719721
/**/

0 commit comments

Comments
 (0)