Patch 8.2.2438

6 views
Skip to first unread message

Bram Moolenaar

unread,
Jan 31, 2021, 8:46:37 AM1/31/21
to vim...@googlegroups.com

Patch 8.2.2438
Problem: Out of bounds compiler warning.
Solution: Increase the size of uf_name.
Files: src/structs.h


*** ../vim-8.2.2437/src/structs.h 2021-01-24 13:34:15.007739955 +0100
--- src/structs.h 2021-01-31 14:44:11.025588374 +0100
***************
*** 1649,1656 ****

char_u *uf_name_exp; // if "uf_name[]" starts with SNR the name with
// "<SNR>" as a string, otherwise NULL
! char_u uf_name[1]; // name of function (actually longer); can
! // start with <SNR>123_ (<SNR> is K_SPECIAL
// KS_EXTRA KE_SNR)
} ufunc_T;

--- 1649,1656 ----

char_u *uf_name_exp; // if "uf_name[]" starts with SNR the name with
// "<SNR>" as a string, otherwise NULL
! char_u uf_name[4]; // name of function (actual size equals name);
! // can start with <SNR>123_ (<SNR> is K_SPECIAL
// KS_EXTRA KE_SNR)
} ufunc_T;

*** ../vim-8.2.2437/src/version.c 2021-01-31 14:36:02.375888833 +0100
--- src/version.c 2021-01-31 14:39:19.410916538 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2438,
/**/

--
Ten bugs in the hand is better than one as yet undetected.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages