mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
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.
This commit is contained in:
@@ -1012,8 +1012,12 @@ do_outofmem_msg(size)
|
|||||||
{
|
{
|
||||||
/* Don't hide this message */
|
/* Don't hide this message */
|
||||||
emsg_silent = 0;
|
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;
|
did_outofmem_msg = TRUE;
|
||||||
|
|
||||||
|
EMSGN(_("E342: Out of memory! (allocating %lu bytes)"), size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
348,
|
||||||
/**/
|
/**/
|
||||||
347,
|
347,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user