-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Description
Steps to reproduce
curl -G --data x /
Expected results
No output, or curl: (3) URL using bad/illegal format or missing URL.
Actual results
curl: (27) Out of memory
Additional information
The actual command is closer to curl -Gso /dev/null -w '%{url_effective}' --data-urlencode 'foo=bar?' /path, which in previous curl versions returned /path?foo=bar%3F but now returns curl: (27) Out of memory. This usage is arguably dubious to begin with, but if it is not supported, I think the error message shouldn't be "Out of memory".
curl/libcurl version
curl 7.86.0 (x86_64-pc-linux-gnu) libcurl/7.86.0 OpenSSL/3.0.7 zlib/1.2.13 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.4 libpsl/0.21.1 (+libidn2/2.3.4) libssh2/1.10.0 nghttp2/1.50.0
Release-Date: 2022-10-26
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd
operating system
Arch Linux