mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.3.243
Problem: Illegal memory access in readline(). Solution: Swap the conditions. (Dominique Pelle)
This commit is contained in:
@@ -14318,7 +14318,7 @@ f_readfile(argvars, rettv)
|
|||||||
tolist = 0;
|
tolist = 0;
|
||||||
for ( ; filtd < buflen || readlen <= 0; ++filtd)
|
for ( ; filtd < buflen || readlen <= 0; ++filtd)
|
||||||
{
|
{
|
||||||
if (buf[filtd] == '\n' || readlen <= 0)
|
if (readlen <= 0 || buf[filtd] == '\n')
|
||||||
{
|
{
|
||||||
/* In binary mode add an empty list item when the last
|
/* In binary mode add an empty list item when the last
|
||||||
* non-empty line ends in a '\n'. */
|
* non-empty line ends in a '\n'. */
|
||||||
|
@@ -709,6 +709,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
243,
|
||||||
/**/
|
/**/
|
||||||
242,
|
242,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user