Created attachment 119010 [details] crash log SUMMARY STEPS TO REPRODUCE 1. Start copying data to MTP device 2. During copy operation, disconnect device 3. Bam OBSERVED RESULT Crash EXPECTED RESULT No crash SOFTWARE/OS VERSIONS Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.15.3 KDE Frameworks Version: 5.56.0 Qt Version: 5.12.0 ADDITIONAL INFORMATION
Git commit 94e7b64325f9e71196a19fb5bc396b9e82f88fc7 by Alexander Saoutkin. Committed on 13/04/2020 at 12:11. Pushed by asaoutkin into branch 'master'. [KIO-MTP] Fix null pointer dereference Summary: A null pointer can be returned from getDevice() if a device is disconnected. Passing NULL into LIBMTP_Get_Storage() results in a NULL pointer dereference. Test Plan: Compiles. I couldn't reproduce this as described in the bug report, but from reading the attached stacktrace in the bug report it's obvious what went wrong here. Reviewers: akrutzler, dfaure, elvisangelaccio Reviewed By: elvisangelaccio Subscribers: anthonyfieroni, kde-frameworks-devel, fvogt, kfm-devel, ngraham Tags: #dolphin, #frameworks Differential Revision: https://phabricator.kde.org/D28535 M +0 -6 mtp/kiod_module/mtpdevice.cpp https://commits.kde.org/kio-extras/94e7b64325f9e71196a19fb5bc396b9e82f88fc7
*** Bug 412159 has been marked as a duplicate of this bug. ***