Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.12.4
-
None
-
-
e21169796297f752a62db25c722ff8e2ff66d8dc (qt/qtbase/5.12)
Description
(presumably affects all platforms, but not tested)
Tail of the stack trace is attached.
The steps needed:
- Use QNAM with a proxy which will reject you quickly (I use CCproxy with my IP not in the allowed list)
- Needs to have the SPDY or H2 attribute enabled on the QNetworkRequest
- Start connecting to any address (possibly needs to be an endpoint with TLS)
- Get rejected by the proxy / have the proxy close the connection
- Crash due to stack overflow
The problem is that it will then recursively emit errors until it crashes (the recursion being due to QHttpNetworkConnectionChannel::close trying to close the socket, which triggers a flush, which triggers an error emission which loops back to the aforementioned close() method).