mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
vim-patch:7.4.887
Problem: Using uninitialized memory for regexp with back reference.
(Dominique Pelle)
Solution: Initialize end_lnum.
c2b717ebd6
---
see: "[bug] use of uninitialized memory in regexp_nfa.c with invalid back reference"
https://groups.google.com/d/msg/vim_dev/JWmrT5-NnPQ/U_TgaRW8AwAJ
This commit is contained in:
parent
baee9fe286
commit
ec6fcf3b1c
@ -4048,6 +4048,7 @@ skip_add:
|
||||
sub->list.multi[subidx].start_col =
|
||||
(colnr_T)(reginput - regline + off);
|
||||
}
|
||||
sub->list.multi[subidx].end_lnum = -1;
|
||||
} else {
|
||||
if (subidx < sub->in_use) {
|
||||
save_ptr = sub->list.line[subidx].start;
|
||||
|
@ -401,7 +401,7 @@ static int included_patches[] = {
|
||||
// 890 NA
|
||||
// 889,
|
||||
// 888,
|
||||
// 887,
|
||||
887,
|
||||
// 886 NA
|
||||
// 885,
|
||||
// 884 NA
|
||||
|
Loading…
Reference in New Issue
Block a user