Commit 3fa9fea
committed
fix: eliminate OpenSSL duplicate symbols causing tls_parse_all_extensions stack overflow
- Add -no-openssl to Qt configure: Qt uses -schannel and never needed
the OpenSSL TLS backend. Without this flag Qt compiled the OpenSSL
plugin anyway, causing every OpenSSL symbol to appear twice in the
final link alongside libtorrent's OpenSSL dependency.
- Remove /FORCE:MULTIPLE from qBittorrent CMake args: this flag was
silently resolving the duplicates by picking arbitrarily between the
two copies, corrupting OpenSSL's ext_defs function pointer table and
making tls_parse_all_extensions recurse infinitely into itself,
overflowing the libtorrent-network-thread stack on TLS handshake.1 parent 7c843f1 commit 3fa9fea
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
| |||
0 commit comments