php-src/ext/ftp
Niels Dossche c962a96c34 Fix GH-10562: Memory leak and invalid state with consecutive ftp_nb_fget
When the user does not fully consume the data stream, but instead opens
a new one, a memory leak occurs. Moreover, the state is invalid: when
more commands arrive they'll be handled out-of-sync because the state of
the client does not match what the server is doing.
This leads to all sorts of weirdness, for example:
  Warning: ftp_nb_fget(): OK.

Fix it by gracefully closing the old data stream when a new data stream
is started.

Closes GH-11606.
2023-07-07 17:55:53 +02:00
..
tests Fix GH-10562: Memory leak and invalid state with consecutive ftp_nb_fget 2023-07-07 17:55:53 +02:00
config.m4 Fix bug #79112: IMAP can't find OpenSSL during configure 2020-01-20 09:59:27 +01:00
config.w32 Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
CREDITS
ftp_arginfo.h ext/ftp fix ftp_nb_get signature (for failure). 2023-03-03 21:08:16 +00:00
ftp.c Fix GH-10562: Memory leak and invalid state with consecutive ftp_nb_fget 2023-07-07 17:55:53 +02:00
ftp.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
ftp.stub.php ext/ftp fix ftp_nb_get signature (for failure). 2023-03-03 21:08:16 +00:00
php_ftp.c Propagate success status of ftp_close() to userland 2023-03-03 15:26:11 +01:00
php_ftp.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00