[ktorrent] [Bug 523761] libktorrent segfault on authenticationFinished

"Jack Hill" <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=523761

Jack Hill <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/netw
                   |                            |ork/libktorrent/-/commit/d5
                   |                            |6aee011e46ce035cbaa314d3135
                   |                            |2c67f3c7ae7
         Resolution|---                         |FIXED

--- Comment #7 from Jack Hill <[email protected]> ---
Git commit d56aee011e46ce035cbaa314d31352c67f3c7ae7 by Jack Hill.
Committed on 08/08/2026 at 14:42.
Pushed by jackh into branch 'master'.

Revert "API/ABI break: Store PeerConnector as unique_ptr"

This reverts commit d6dec56102cd26ba837fe6f5e5956170eaf97b0d.

The PeerManager::peerAuthenticated method was called by the
PeerConnector class, but this function also deleted the PeerConnector
class at the same time. This it probably UB and caused crashes.

M  +1    -1    src/mse/encryptedauthenticate.cpp
M  +1    -1    src/mse/encryptedauthenticate.h
M  +5    -3    src/peer/authenticate.cpp
M  +3    -4    src/peer/authenticate.h
M  +11   -5    src/peer/peerconnector.cpp
M  +7    -0    src/peer/peerconnector.h
M  +8    -13   src/peer/peermanager.cpp
M  +1    -1    src/peer/peermanager.h

https://invent.kde.org/network/libktorrent/-/commit/d56aee011e46ce035cbaa314d31352c67f3c7ae7

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.