Skip to content

Commit b70aad4

Browse files
committed
updated for version 7.3.243
Problem: Illegal memory access in readline(). Solution: Swap the conditions. (Dominique Pelle)
1 parent 8dd190f commit b70aad4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14318,7 +14318,7 @@ f_readfile(argvars, rettv)
1431814318
tolist = 0;
1431914319
for ( ; filtd < buflen || readlen <= 0; ++filtd)
1432014320
{
14321-
if (buf[filtd] == '\n' || readlen <= 0)
14321+
if (readlen <= 0 || buf[filtd] == '\n')
1432214322
{
1432314323
/* In binary mode add an empty list item when the last
1432414324
* non-empty line ends in a '\n'. */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ static char *(features[]) =
709709

710710
static int included_patches[] =
711711
{ /* Add new patch number below this line */
712+
/**/
713+
243,
712714
/**/
713715
242,
714716
/**/

0 commit comments

Comments
 (0)