From 68c6d85a3f8299b20e4299b7617be3d6fd9af170 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Mon, 24 Feb 2020 09:43:35 +0100 Subject: [PATCH] Fix potential null pointer access https://sentry.io/organizations/owncloud/issues/1529161263/events/02509984b5ca42ffb3960d9c9e161414/?project=79001&statsPeriod=14d --- changelog/unreleased/7760 | 4 ++++ src/libsync/discoveryphase.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/7760 diff --git a/changelog/unreleased/7760 b/changelog/unreleased/7760 new file mode 100644 index 00000000000..6f50007518b --- /dev/null +++ b/changelog/unreleased/7760 @@ -0,0 +1,4 @@ +Bugfix: Fixed a potential crash on cancelation of discovery jobs + + +https://github.com/owncloud/client/pull/7760 diff --git a/src/libsync/discoveryphase.h b/src/libsync/discoveryphase.h index 14dfdc6a357..52c6596be08 100644 --- a/src/libsync/discoveryphase.h +++ b/src/libsync/discoveryphase.h @@ -158,7 +158,7 @@ class DiscoveryPhase : public QObject friend class ProcessDirectoryJob; - ProcessDirectoryJob *_currentRootJob = nullptr; + QPointer _currentRootJob; /** Maps the db-path of a deleted item to its SyncFileItem. *