aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp_nfa.c
Commit message (Collapse)AuthorAge
...
* vim-patch:8.1.0192: executing regexp recursively fails with a crashJan Edmund Lazo2020-08-02
| | | | | | Problem: Executing regexp recursively fails with a crash. Solution: Move global variables into "rex". https://github.com/vim/vim/commit/0270f38e1ae484c31a80c813a08691c47a207f1a
* vim-patch:8.2.0938: NFA regexp uses tolower ()to compare ignore-caseJan Edmund Lazo2020-06-18
| | | | | | Problem: NFA regexp uses tolower() to compare ignore-case. (Thayne McCombs) Solution: Use utf_fold() when possible. (ref. neovim vim/vim#12456) https://github.com/vim/vim/commit/59de417b904bbd204e313f015839317b577bd124
* vim-patch:8.2.0892: ubsan warns for undefined behaviorJan Edmund Lazo2020-06-04
| | | | | | | Problem: Ubsan warns for undefined behavior. Solution: Use unsigned instead of signed variable. (Dominique Pelle, closes vim/vim#6193) https://github.com/vim/vim/commit/c5acc0f7fed6b061d994fc5ac660dcc0312750bd
* vim-patch:8.1.2120: some MB_ macros are more complicated than necessaryJan Edmund Lazo2019-10-06
| | | | | | | Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline. https://github.com/vim/vim/commit/1614a14901558ca091329315d14a7d5e1b53aa47
* Remove excess <stdint.h>Jan Edmund Lazo2019-09-11
|
* regexp: add function attributesJan Edmund Lazo2019-07-25
|
* vim-patch:8.1.0913: CI crashes when running out of memoryJan Edmund Lazo2019-07-25
| | | | | | Problem: CI crashes when running out of memory. Solution: Apply 'maxmempattern' also to new regexp engine. https://github.com/vim/vim/commit/688b3983d8b321e0d32dd51914fa474a0988daf6
* vim-patch:8.1.0910: crash with tricky search patternJan Edmund Lazo2019-07-25
| | | | | | Problem: Crash with tricky search pattern. (Kuang-che Wu) Solution: Check for runnning out of memory. (closes vim/vim#3950) https://github.com/vim/vim/commit/15bbd6ec871a0efdd16256e1fccbaac0fd374cbd
* vim-patch:8.1.0907: CI tests on AppVeyor are failingJan Edmund Lazo2019-07-25
| | | | | | Problem: CI tests on AppVeyor are failing. Solution: Reduce the recursiveness limit for regexp. https://github.com/vim/vim/commit/5382f12c910b7f8e46acdde5488f26a86f9fcac1
* vim-patch:8.1.0905: complicated regexp causes a crashJan Edmund Lazo2019-07-25
| | | | | | Problem: Complicated regexp causes a crash. (Kuang-che Wu) Solution: Limit the recursiveness of addstate(). (closes vim/vim#3941) https://github.com/vim/vim/commit/5567ad48b66dff13670af52a48509059acc34dfe
* regexp: use fixed types to avoid overflowJan Edmund Lazo2019-07-24
|
* Checks for overflow when parsing string to intGabriel2019-07-24
|
* vim-patch:8.1.0908: can't handle large value for %{nr}v in regexpJan Edmund Lazo2019-07-24
| | | | | | Problem: Can't handle large value for %{nr}v in regexp. (Kuang-che Wu) Solution: Give an error if the value is too large. (closes vim/vim#3948) https://github.com/vim/vim/commit/9403a2168db82b7de80f792984084bb3f00e2263
* PVS/V1037: suppress warning #10526Ihor Antonov2019-07-18
| | | | * Case branches are semantically different. * Lint
* vim-patch:8.1.0641: no check for out-of-memory when converting regexpJan Edmund Lazo2019-07-15
| | | | | | Problem: No check for out-of-memory when converting regexp. Solution: Bail out when lalloc() returns NULL. (John Marriott) https://github.com/vim/vim/commit/c57463c9c6ee893285f553e0ac3b2fe5935f16b8
* vim-patch:8.0.1496: VIM_CLEAR()Justin M. Keyes2019-05-25
| | | | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629) vim-patch:8.0.1481
* vim-patch:8.1.1249: compiler warning for uninitialized variableJan Edmund Lazo2019-05-03
| | | | | | Problem: Compiler warning for uninitialized variable. Solution: Initialize it. (Christian Brabandt) https://github.com/vim/vim/commit/c6b1cc967f859c6e975d001e4304113db7190690
* vim-patch:8.1.0170: invalid memory use with complicated pattern #9724Jan Edmund Lazo2019-03-13
| | | | | | Problem: Invalid memory use with complicated pattern. (Andy Massimino) Solution: Reallocate the list of listids when needed. (closes vim/vim#3175) Remove unnecessary function prototypes. https://github.com/vim/vim/commit/2338c32b53d20dc18540b1a20845bcd8a6371bff
* Merge #9662 'vim-patch:8.0.{0643-0646}'Justin M. Keyes2019-03-08
|\
| * lint: fix coding styleBilly Su2019-03-08
| |
| * vim-patch:8.0.0645: no error for illegal back reference in NFA engineBilly Su2019-03-07
| | | | | | | | | | | | | | Problem: The new regexp engine does not give an error for using a back reference where it is not allowed. (Dominique Pelle) Solution: Check the back reference like the old engine. (closes vim/vim#1774) https://github.com/vim/vim/commit/1ef9bbe215e13a273e74fccaddd8fc5a42c76b6e
| * vim-patch:8.0.0643: when a pattern search is slow Vim becomes unusableBilly Su2019-03-07
|/ | | | | | | | | Problem: When 'hlsearch' is set and matching with the last search pattern is very slow, Vim becomes unusable. Cannot quit search by pressing CTRL-C. Solution: When the search times out set a flag and don't try again. Check for timeout and CTRL-C in NFA loop that adds states. https://github.com/vim/vim/commit/fbd0b0af6800f6ff89857863d6a07ea03f09ff6c
* vim-patch:8.1.0973: pattern with syntax error gives threee error messagesJustin M. Keyes2019-03-01
| | | | | | | | Problem: Pattern with syntax error gives threee error messages. (Kuang-che Wu) Solution: Remove outdated internal error. Don't fall back to other engine after an error. https://github.com/vim/vim/commit/cd62512c5595fa1f7a7f2c6ec1a90ea6bde3ad50
* vim-patch:8.1.0968: crash when using search pattern \%Ufffffc23Justin M. Keyes2019-03-01
| | | | | | Problem: Crash when using search pattern \%Ufffffc23. Solution: Limit character to INT_MAX. (closes vim/vim#4009) https://github.com/vim/vim/commit/527a2d86fb375fcc7b34e80fc47f4c7126fc12ba
* lintJan Edmund Lazo2019-02-17
|
* vim-patch:8.1.0945: internal error when using pattern with NL in the rangeJan Edmund Lazo2019-02-17
| | | | | | | Problem: Internal error when using pattern with NL in the range. Solution: Use an actual newline for the range. (closes vim/vim#3989) Also fix error message. (Dominique Pelle) https://github.com/vim/vim/commit/a5483448cba6997517003a22a8029f0de1007d0e
* vim-patch:8.1.0098: segfault when pattern with \z() is very slow (#9283)Justin M. Keyes2018-11-29
| | | | | | | | Problem: Segfault when pattern with \z() is very slow. Solution: Check for NULL regprog. Add "nfa_fail" to test_override() to be able to test this. Fix that 'searchhl' resets called_emsg. https://github.com/vim/vim/commit/bcf9442307075bac40d44328c8bf7ea21857b138 closes #8788
* src/nvim/eval.cMichaHoffmann2018-10-07
| | | | | | | | | | src/nvim/eval/typval.c src/nvim/fileio.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/spellfile.c changed some EMSG[..] Macros to emsgf
* fixed lint errorsMichaHoffmann2018-09-24
|
* add func_attr_printf in :MichaHoffmann2018-09-24
| | | | | | | | | | | | | | | | | | | | | | log.c message.c strings.c fixed some printf warnings in: src/nvim/undo.c src/nvim/eval.c src/nvim/eval/encode.c src/nvim/eval/typval.c src/nvim/ex_getln.c src/nvim/fileio.c src/nvim/lua/executor.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/shada.c src/nvim/spellfile.c src/nvim/tui/terminfo.c src/nvim/garray.h
* lintJan Edmund Lazo2018-09-21
|
* replace fallthrough comment with macroJan Edmund Lazo2018-09-21
| | | | Follow-up of vim-patch:8.0.1215
* vim-patch:8.0.1215: newer gcc warns for implicit fallthroughJan Edmund Lazo2018-09-20
| | | | | | Problem: Newer gcc warns for implicit fallthrough. Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt) https://github.com/vim/vim/commit/2f40d129bf45cd35976e4120336ae6d504f5a5dd
* Remove has_mbytes local to lines changed in parent commitZviRackover2018-09-09
|
* Refactor: Remove occurences of mb_char2bytesZviRackover2018-09-09
|
* lint: cleanup after parent commitsZviRackover2018-08-16
|
* Remove has_mbyte from lines near changes in parent commitZviRackover2018-08-16
|
* Remove occurences of mb_head_offZviRackover2018-08-15
|
* lintJan Edmund Lazo2018-08-12
|
* vim-patch:8.0.1397: pattern with \& following nothing gives an errorJan Edmund Lazo2018-08-12
| | | | | | Problem: Pattern with \& following nothing gives an error. Solution: Emit an empty node when needed. https://github.com/vim/vim/commit/890dd05492d88d48eee1dda7f7a1811d027ce7ca
* lintJan Edmund Lazo2018-08-11
|
* vim-patch:8.1.0099: exclamation mark in error message not neededJan Edmund Lazo2018-08-11
| | | | | | Problem: Exclamation mark in error message not needed. Solution: Remove the exclamation mark. https://github.com/vim/vim/commit/3c867daaf09e8ac6ce4b9d43d6fbbfdd7689702d
* vim-patch:8.1.0097: superfluous space before exclamation markJan Edmund Lazo2018-08-11
| | | | | | Problem: Superfluous space before exclamation mark. Solution: Remove the space. Don't translate debug message. https://github.com/vim/vim/commit/5efa0102de6ed6049fb19e1e83787e5b3b24b6a2
* vim-patch:8.1.0090: "..." used inconsistently in a messageJan Edmund Lazo2018-08-11
| | | | | | Problem: "..." used inconsistently in a message. Solution: Define the message with " ..." once. (hint by Ken Takata) https://github.com/vim/vim/commit/9b0c5c23bd5260caef82a4f3dcc945c129857c52
* vim-patch:8.1.0078: "..." used inconsistently in messagesJan Edmund Lazo2018-08-11
| | | | | | Problem: "..." used inconsistently in messages. Solution: Drop the space before " ...". https://github.com/vim/vim/commit/c166927a32fe5c054ad35deecff00aa12c629cf7
* vim-patch:8.0.1470: integer overflow when using regexp patternJan Edmund Lazo2018-08-11
| | | | | | Problem: Integer overflow when using regexp pattern. (geeknik) Solution: Use a long instead of int. (Christian Brabandt, closes vim/vim#2251) https://github.com/vim/vim/commit/2c7b906afb86b986476cfc959732e433b1b4a3b1
* vim-patch:8.0.1254: undefined left shift in gethexchrs()Jan Edmund Lazo2018-08-11
| | | | | | Problem: Undefined left shift in gethexchrs(). (geeknik) Solution: Use unsigned long. (idea by Christian Brabandt, closes vim/vim#2255) https://github.com/vim/vim/commit/4c22a91d20cce4f28dd2852a13129b5a4cc691da
* vim-patch:8.0.0828: Coverity: may dereference NULL pointerJan Edmund Lazo2018-08-11
| | | | | | Problem: Coverity: may dereference NULL pointer. Solution: Bail out if calloc_state() returns NULL. https://github.com/vim/vim/commit/983b3a5bc44a91cc7e40b8e71e3bfdb03dd4606f
* style: fixing minor issues noted in code review.ZviRackover2018-08-06
|
* Remove some occrrences of enc_utf8 and has_mbyteZviRackover2018-08-06
| | | | | Removing uses and related dead code in the locallity of changes of the two parent commits.