-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Description
I did this
There is a bug reported to PHP https://bugs.php.net/bug.php?id=71861 being currently investigated. From what I currently could trace, it looks like a bug or behavior change in cURL. I also wrote a simple C program to mimic the behavior https://gist.github.com/weltling/15400de1018c7e6a4b476a415f08768d .
When the NTLM authentication is not used, or the buffer size is a power of two, there's no hang. Otherwise the program hangs.
I expected the following
The program doesn't hang.
curl/libcurl version
With 7.42.1 the program encounters HTTP error and exits, with 7.47.1 or 7.48.0 the program hangs.
curl -V
curl 7.47.1 (x86_64-pc-win32) libcurl/7.47.1 OpenSSL/1.0.1s zlib/1.2.7.3 WinIDN libssh2/1.7.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile SSPI Kerberos SPNEGO NTLM SSL libz
operating system
Windows