We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dbe2d6 commit 7484394Copy full SHA for 7484394
NEWS
@@ -2,6 +2,10 @@ PHP NEWS
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
?? ??? ????, PHP 8.2.20
4
5
+- CGI:
6
+ . Fixed buffer limit on Windows, replacing read call usage by _read.
7
+ (David Carlier)
8
+
9
- DOM:
10
. Fix crashes when entity declaration is removed while still having entity
11
references. (nielsdos)
main/fastcgi.c
@@ -965,9 +965,9 @@ static inline ssize_t safe_read(fcgi_request *req, const void *buf, size_t count
965
tmp = count - n;
966
967
if (!req->tcp) {
968
- unsigned int in_len = tmp > UINT_MAX ? UINT_MAX : (unsigned int)tmp;
+ unsigned int in_len = tmp > INT_MAX ? INT_MAX : (unsigned int)tmp;
969
970
- ret = read(req->fd, ((char*)buf)+n, in_len);
+ ret = _read(req->fd, ((char*)buf)+n, in_len);
971
} else {
972
int in_len = tmp > INT_MAX ? INT_MAX : (int)tmp;
973
sapi/cgi/cgi_main.c
@@ -486,9 +486,9 @@ static size_t sapi_cgi_read_post(char *buffer, size_t count_bytes)
486
while (read_bytes < count_bytes) {
487
#ifdef PHP_WIN32
488
size_t diff = count_bytes - read_bytes;
489
- unsigned int to_read = (diff > UINT_MAX) ? UINT_MAX : (unsigned int)diff;
+ unsigned int to_read = (diff > INT_MAX) ? INT_MAX : (unsigned int)diff;
490
491
- tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, to_read);
+ tmp_read_bytes = _read(STDIN_FILENO, buffer + read_bytes, to_read);
492
#else
493
tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes);
494
#endif
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments