mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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:
@@ -7070,6 +7070,8 @@ nfa_regtry(
|
||||
{
|
||||
cleanup_zsubexpr();
|
||||
re_extmatch_out = make_extmatch();
|
||||
if (re_extmatch_out == NULL)
|
||||
return 0;
|
||||
// Loop over \z1, \z2, etc. There is no \z0.
|
||||
for (i = 1; i < subs.synt.in_use; i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user