forked from aniani/vim
patch 8.2.0033: crash when make_extmatch() runs out of memory
Problem: Crash when make_extmatch() runs out of memory. Solution: Check for NULL. (Dominique Pelle, closs #5392)
This commit is contained in:
@@ -4568,6 +4568,8 @@ regtry(
|
||||
|
||||
cleanup_zsubexpr();
|
||||
re_extmatch_out = make_extmatch();
|
||||
if (re_extmatch_out == NULL)
|
||||
return 0;
|
||||
for (i = 0; i < NSUBEXP; i++)
|
||||
{
|
||||
if (REG_MULTI)
|
||||
|
Reference in New Issue
Block a user