1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00
Files
archived-php-src/ext
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
..
2022-06-25 07:39:55 +01:00
2022-07-27 12:13:32 +02:00
2022-09-13 11:33:09 +01:00
2022-04-25 14:29:44 +02:00
2023-03-27 16:33:36 +02:00
2022-06-13 14:43:51 +02:00
2023-07-04 10:28:59 +02:00
2022-12-18 23:20:29 -07:00
2023-03-27 16:33:36 +02:00
2023-06-06 18:01:56 -04:00
2023-07-06 09:45:35 +02:00
2023-03-01 23:02:03 +01:00
2023-03-27 16:33:36 +02:00