summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-09-04patch 9.0.1864: still crash with bt_quickfix1_pocv9.0.1864Christian Brabandt
Problem: crash with bt_quickfix1_poc when cleaning up and EXITFREE is defined Solution: Test if buffer is valid in a window, else close window directly, don't try to access buffer properties While at it, increase the crash timeout slightly, so that CI has a chance to finish processing the test_crash() test. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-04translation(it): revert permission changes for xxd manpagesChristian Brabandt
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-04patch 9.0.1863: wrong format specifiers in e_aptypes_is_null_str_nrv9.0.1863zeertzjq
Problem: wrong format specifiers in e_aptypes_is_null_str_nr Solution: Fix the wrong format specifier closes: #13020 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-09-04patch 9.0.1862: Vim9 Garbage Collection issuesv9.0.1862Yegappan Lakshmanan
Problem: Vim9 Garbage Collection issues Solution: Class members are garbage collected early leading to use-after-free problems. Handle the garbage collection of classes properly. closes: #13019 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-04patch 9.0.1861: xxd: issue when -R is specified several timesv9.0.1861K.Takata
Problem: xxd: issue when -R is specified several times Solution: Fix command line parsing See: https://github.com/vim/vim/pull/12986#issuecomment-1704375892 closes: #13021 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: K.Takata <kentkt@csc.jp> Co-authored-by: Aapo Rantalainen <aapo.rantalainen@gmail.com>
2023-09-04patch 9.0.1860: CI: test_crash1() is flakyv9.0.1860Christian Brabandt
Problem: CI: test_crash1() is flaky Solution: Wait a bit longer Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-03patch 9.0.1859: heap-use-after-free in bt_normal()v9.0.1859Christian Brabandt
Problem: heap-use-after-free in bt_normal() Solution: check that buffer is still valid Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-03patch 9.0.1858: [security] heap use after free in ins_compl_get_exp()v9.0.1858Christian Brabandt
Problem: heap use after free in ins_compl_get_exp() Solution: validate buffer before accessing it Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-03patch 9.0.1857: [security] heap-use-after-free in is_qf_win()v9.0.1857Christian Brabandt
Problem: heap-use-after-free in is_qf_win() Solution: Check buffer is valid before accessing it Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-03patch 9.0.1856: issues with formatting positional argumentsv9.0.1856Christ van Willegen
Problem: issues with formatting positional arguments Solution: fix them, add tests and documentation closes: #12140 closes: #12985 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Christ van Willegen <cvwillegen@gmail.com> Tentatively fix message_test. Check NULL ptr.
2023-09-03patch 9.0.1855: mode() doesn't indicate command line for terminalv9.0.1855h-east
Problem: mode() doesn't indicate command line for terminal Solution: make it return 'ct' for command-line from Terminal mode closes: #6265 closes: #13017 closes: #13018 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: h-east <h.east.727@gmail.com>
2023-09-03patch 9.0.1854: test_crash1() fails on CIv9.0.1854Christian Brabandt
Problem: test_crash1() fails on CI Solution: don't run Screendump test, verify that it doesn't crash by running it through a shell command line, testing the exit value and concatenating success cmd using '&&' Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1853: CI error on different signedness in regexp.cv9.0.1853Christian Brabandt
Problem: CI error on different signedness in regexp.c (after patch 9.0.1848) Solution: Cast strlen() call to int Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1852: i_CTRL-O does not reset Select Modev9.0.1852pierreganty
Problem: i_CTRL-O does not reset Select Mode Solution: Reset select mode on CTRL-O in insert mode closes: #13001 closes: #12115 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1851: breakindent missing by virt textv9.0.1851zeertzjq
Problem: Virtual text at a column causes 'breakindent' and 'showbreak' to be missing (after patch 9.0.1124). Solution: Add check for "tp_col" in another place where TP_FLAG_WRAP is checked. closes: #12769 closes: #13008 closes: #13010 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-09-02patch 9.0.1850: Vim9: wrong line number where options setv9.0.1850LemonBoy
Problem: Vim9: wrong line number where options set Solution: Set source line number earlier closes: #13006 closes: #13013 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: LemonBoy <thatlemon@gmail.com>
2023-09-02patch 9.0.1849: CI error on different signedness in ex_cmds.cv9.0.1849Christian Brabandt
Problem: CI error on different signedness Solution: cast unsigned to int Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1848: [security] buffer-overflow in vim_regsub_both()v9.0.1848Christian Brabandt
Problem: buffer-overflow in vim_regsub_both() Solution: Check remaining space Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1847: [security] potential oob write in do_addsub()v9.0.1847Christian Brabandt
Problem: potential oob write in do_addsub() Solution: don't overflow buf2, check size in for loop() Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1846: [security] crash in fullcommandv9.0.1846Christian Brabandt
Problem: crash in fullcommand Solution: Check for typeval correctly Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1845: xxd: Test_xxd_color start failingv9.0.1845Christian Brabandt
Problem: xxd: Test_xxd_color start failing Solution: Revert changes to dump file Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1844: doc helptags may not be up to datev9.0.1844Yee Cheng Chin
Problem: doc helptags may not be up to date Solution: Add CI jobs to verify helptags are updated Also, re-generate the tags file with updated list so it will pass CI. closes: #13012 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1843: xxd color test flakyv9.0.1843Christian Brabandt
Problem: xxd color test flaky Solution: Filter unneeded lines Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02translation(it): updated Italian xxd manpageAntonio Giovanni Colombo
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1842: Need more accurate profilingv9.0.1842Ernie Rael
Problem: Need more accurate profiling Solution: Improve profiling results closes: #12192 Reduce overhead of checking if a function should be profiled, by caching results of checking (which are done with regexp). Cache uf_hash for uf_name in ufunc_T. Cache cleared when regexps are changed. Break at first match for has_profiling lookup. Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ernie Rael <errael@raelity.com>
2023-09-02patch 9.0.1841: style: trailing whitespace in ex_cmds.cv9.0.1841Christian Brabandt
Problem: style: trailing whitespace in ex_cmds.c Solution: remove it Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02translation(en_GB): Update UK English translation (#13011)Mike Williams
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-02patch 9.0.1840: [security] use-after-free in do_ecmdv9.0.1840Christian Brabandt
Problem: use-after-free in do_ecmd Solution: Verify oldwin pointer after reset_VIsual() Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-01runtime(zserio): add zserio syntax (#13005)Dominique Pellé
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-01patch 9.0.1839: No Makefile rule to build cscope databasev9.0.1839Christian Brabandt
Problem: No Makefile rule to build cscope database Solution: Add rule Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-01translation(it): updated Italian translation + xxd manpageAntonio Giovanni Colombo
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-01patch 9.0.1838: Vim9: Cannot modify class member vars from def functionv9.0.1838Yegappan Lakshmanan
Problem: Vim9: Cannot modify class member vars from def function Solution: Add support for modifying class member variables from a def function closes: #12995 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-09-01tests: Improve the codestyle test (#12988)Christian Brabandt
Improve it by the following: 1) Also check xxd source 2) Test_source_files(): don't stop on the first error found, continue until the end of the file and report all found errors like this: Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-01patch 9.0.1837: Vim9: class_member_type() can be optimizedv9.0.1837Ernie Rael
Problem: Vim9: class_member_type() can be optimized Solution: class_member_type() provides more information; safe an additional alloc()/free() closes: #12989 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ernie Rael <errael@raelity.com>
2023-09-01Fix menu localization not updated for "Open Tab..." item (#12993)Yee Cheng Chin
THe menu item "Open Tab..." was changed to "Open &Tab..." in #12895 but localization files were not updated. Update it here. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-09-01patch 9.0.1836: display wrong with virttext, linebreak and breakindentv9.0.1836zeertzjq
Problem: Wrong display with "above" virtual text and 'linebreak' or 'breakindent' and 'showbreak'. Solution: Exclude size of "above" virtual text when calculating them. closes: #13000 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-09-01patch 9.0.1835: Perl interface has problems with load PL_current_contextv9.0.1835Yee Cheng Chin
Problem: Perl interface has problems with load PL_current_context Solution: Fix Perl interface to load PL_current_context from library In #12914, in order to fix an issue with Perl 5.36 dynamic builds, (that version introduced a thread-local `PL_current_context`), the file added the variable manually so we can satisfy the linker. However, the variable is a different one from the one in the library, so there could be unpredictable behavior. Instead, just use `dlsym` to load the context from the library. The fact that it's thread-local doesn't matter too much to us because Vim's interface is single-threaded so it will work properly. closes: #12996 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
2023-09-01patch 9.0.1834: Some problems with xxd coloringv9.0.1834K.Takata
Problem: Some problems with xxd coloring Solution: Fix the following problems: * Support colored output on Windows. SetConsoleMode() is required to enable ANSI color sequences. * Support "NO_COLOR" environment variable. If "NO_COLOR" is defined and not empty, colored output should be disabled. See https://no-color.org/ * "-R" should only accept "always", "never" or "auto" as the parameter. * Adjust help and documentation. "-R" cannot omit the parameter. Remove surrounding brackets. Related #12131 closes: #12997 closes: #12991 closes: #12986 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: K.Takata <kentkt@csc.jp>
2023-09-01runtime(ruby): Update syntax, indent and ftplugin filesDoug Kearns
While making changes to the ruby ftplugin, slightly change the exepath() conditional from patch 9.0.1833 and move it after the :cd invocation. closes: 12981 closes: 12994 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Tim Pope <code@tpope.net> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2023-08-31patch 9.0.1833: [security] runtime file fixesv9.0.1833Christian Brabandt
Problem: runtime files may execute code in current dir Solution: only execute, if not run from current directory The perl, zig and ruby filetype plugins and the zip and gzip autoload plugins may try to load malicious executable files from the current working directory. This is especially a problem on windows, where the current directory is implicitly in your $PATH and windows may even run a file with the extension `.bat` because of $PATHEXT. So make sure that we are not trying to execute a file from the current directory. If this would be the case, error out (for the zip and gzip) plugins or silently do not run those commands (for the ftplugins). This assumes, that only the current working directory is bad. For all other directories, it is assumed that those directories were intentionally set to the $PATH by the user. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-31patch 9.0.1832: xxd: reporting wrong versionv9.0.1832Christian Brabandt
Problem: xxd: reporting wrong version (after 9.0.1827) Solution: Update version string Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-31patch 9.0.1831: Vim9: failing null testv9.0.1831Gianmaria Bajo
Problem: Vim9: failing null test Solution: Use required public keyword closes: #12982 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Gianmaria Bajo <mg1979.git@gmail.com>
2023-08-31patch 9.0.1830: Vim9: crash when accessing a null objectv9.0.1830Gianmaria Bajo
Problem: Vim9: crash when accessing a null object Solution: Check accessing a NULL object in def function An object is NULL when the variable is declared, but the constructor isn't called. Accessing/setting a member on the object crashed Vim. Note: this happens inside def functions, at script level things work differently. Accessing a NULL object member results in E1360 (correctly), while setting a value on it results in E1012 (type mismatch) so there's still something to fix. closes: #12973 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Gianmaria Bajo <mg1979.git@gmail.com>
2023-08-31patch 9.0.1829: Vim9 missing access-checks for private varsv9.0.1829Yegappan Lakshmanan
Problem: Vim9 missing access-checks for private vars Solution: Use the proper check for private/readonly variable. Access level for a member cannot be changed in a class implementing an interface. Update the code indentation closes: #12978 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com> Co-authored-by: Ernie Rael <errael@raelity.com>
2023-08-31patch 9.0.1828: cursor wrong with virt text before double-width charv9.0.1828zeertzjq
Problem: Wrong cursor position with virtual text before double-width char at window edge. Solution: Check for double-width char before adding virtual text size. closes: #12977 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-31translation(it): updated Italian manpagesAntonio Giovanni Colombo
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-31patch 9.0.1827: xxd: no color supportv9.0.1827Aapo Rantalainen
Problem: xxd: no color support Solution: Add color support using xxd -R Add some basic color support for xxd The hex-value and value are both colored with the same color depending on the hex-value, e.g.: 0x00 = white 0xff = blue printable = green non-printable = red tabs and linebreaks = yellow Each character needs 11 more bytes to contain color. (Same color in a row could contain only one overhead but the logic how xxd creates colums must be then changed.) Size of colored output is increased by factor of ~6. Also grepping the output will break when colors is used. Flag for color is "-R", because less uses "-R". Color uses parameters auto,always,never same as less and grep (among others). E.g. xxd -R always $FILE | less -R Add some screen-tests (that currently on work on linux) to verify the feature works as expected. closes: #12131 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Aapo Rantalainen <aapo.rantalainen@gmail.com>
2023-08-31runtime(optwin): Fix for 'splitkeep' option (#12974)xrandomname
'spk' was used as a boolean, rather than a string option. Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-31runtime(forth): Update syntax and ftplugin files (#12976)dkearns
Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-30patch 9.0.1826: keytrans() doesn't translate recorded key typed in a GUIv9.0.1826zeertzjq
Problem: keytrans() doesn't translate recorded key typed in a GUI Solution: Handle CSI like K_SPECIAL, like in mb_unescape() closes: #12964 closes: #12966 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>