aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/voip.cpp
diff options
context:
space:
mode:
authorNicolas Fella <nicolas.fella@gmx.de>2020-12-27 21:24:06 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-27 22:25:44 +0100
commitf286ef4c5b3c71510d6ef15e8cc12cada84f3682 (patch)
tree8ff187ab7d3ae3dfa8d653c499ed16338b4a073d /lib/csapi/voip.cpp
parentd6c2622b0cdc33ad272542ab611c15de07202520 (diff)
downloadlibquotient-f286ef4c5b3c71510d6ef15e8cc12cada84f3682.tar.gz
libquotient-f286ef4c5b3c71510d6ef15e8cc12cada84f3682.zip
Fix use-after-free of QNetworkReply in BaseJob
Usually QNetworkAccessManager expects the user to delete the replies, but when the QNetworkAccessManager itself is deleted it deletes all pending replies (https://code.woboq.org/qt5/qtbase/src/network/access/qnetworkaccessmanager.cpp.html#529). This can lead to use-after-free crashes when d->reply is accessed. By putting the reply into a QPointer the exiting if(d->reply) checks can work properly. (cherry picked from commit 9d854e778d8d6ef8e03e1ea74fe958675b24fd45)
Diffstat (limited to 'lib/csapi/voip.cpp')
0 files changed, 0 insertions, 0 deletions