Skip to content

Commit 0765623

Browse files
committed
improve fix for Bug #69545
1 parent f38ca75 commit 0765623

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2015 PHP 5.4.42
44

5+
- Core:
6+
. Imroved fix for bug #69545 (Integer overflow in ftp_genlist() resulting in
7+
heap overflow). (Max Spelsberg)
8+
59
- Postgres:
610
. Fixed bug #69667 (segfault in php_pgsql_meta_data). (Remi)
711

ext/ftp/ftp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,8 +1668,6 @@ ftp_genlist(ftpbuf_t *ftp, const char *cmd, const char *path TSRMLS_DC)
16681668
for (ptr = data->buf; rcvd; rcvd--, ptr++) {
16691669
if (*ptr == '\n' && lastch == '\r') {
16701670
lines++;
1671-
} else {
1672-
size++;
16731671
}
16741672
lastch = *ptr;
16751673
}

0 commit comments

Comments
 (0)