[Pkg-owncloud-commits] [owncloud-client] 29/121: PropagateUpload: fix crash in PUTFileJob::slotTimeout

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu Jul 28 15:31:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 6dade0b1140ad13ec4b39f6108df9170b3ae085d
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Wed Jun 15 14:32:25 2016 +0200

    PropagateUpload: fix crash in PUTFileJob::slotTimeout
    
    Same fix as in commit 60c101d9
    
    From the crash reporter:
    
    Crash
    EXCEPTION_ACCESS_VIOLATION_READ at 0x4
    qnetworkreply.cpp in QNetworkReply::request at line 476
    propagateupload.cpp in OCC::PUTFileJob::slotTimeout at line 100
    moc_abstractnetworkjob.cpp in OCC::AbstractNetworkJob::qt_static_metacall at line 98
    qobject.cpp in QMetaObject::activate at line 3716
    moc_qtimer.cpp in QTimer::timeout at line 192
    qtimer.cpp in QTimer::timerEvent at line 247
    qobject.cpp in QObject::event at line 1267
    qapplication.cpp in QApplicationPrivate::notify_helper at line 3722
    qapplication.cpp in QApplication::notify at line 3505
    qcoreapplication.cpp in QCoreApplication::notifyInternal at line 932
---
 src/libsync/propagateupload.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/libsync/propagateupload.cpp b/src/libsync/propagateupload.cpp
index 2ef53dd..5875ae7 100644
--- a/src/libsync/propagateupload.cpp
+++ b/src/libsync/propagateupload.cpp
@@ -97,7 +97,9 @@ void PUTFileJob::start() {
 }
 
 void PUTFileJob::slotTimeout() {
-    qDebug() << "Timeout" << reply()->request().url();
+    qDebug() << "Timeout" << (reply() ? reply()->request().url() : path());
+    if (!reply())
+        return;
     _errorString =  tr("Connection Timeout");
     reply()->abort();
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list