Mercurial > vim
comparison src/syntax.c @ 7504:013f285f31a6 v7.4.1054
commit https://github.com/vim/vim/commit/2795e21eaafaeaf95a91667fd411023280d0f902
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 5 22:04:49 2016 +0100
patch 7.4.1054
Problem: Illegal memory access.
Solution: Check for missing pattern. (Dominique Pelle)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 05 Jan 2016 22:15:04 +0100 |
parents | ef568437e49a |
children | 616460b73ee3 |
comparison
equal
deleted
inserted
replaced
7503:094dd804f86f | 7504:013f285f31a6 |
---|---|
5831 curwin->w_s->b_syn_sync_maxlines = 0; | 5831 curwin->w_s->b_syn_sync_maxlines = 0; |
5832 } | 5832 } |
5833 } | 5833 } |
5834 else if (STRCMP(key, "LINECONT") == 0) | 5834 else if (STRCMP(key, "LINECONT") == 0) |
5835 { | 5835 { |
5836 if (*next_arg == NUL) /* missing pattern */ | |
5837 { | |
5838 illegal = TRUE; | |
5839 break; | |
5840 } | |
5836 if (curwin->w_s->b_syn_linecont_pat != NULL) | 5841 if (curwin->w_s->b_syn_linecont_pat != NULL) |
5837 { | 5842 { |
5838 EMSG(_("E403: syntax sync: line continuations pattern specified twice")); | 5843 EMSG(_("E403: syntax sync: line continuations pattern specified twice")); |
5839 finished = TRUE; | 5844 finished = TRUE; |
5840 break; | 5845 break; |