Summary: | Segmentation fault in idevice_free | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-solid | Reporter: | Christopher Yeleighton <giecrilj> |
Component: | general | Assignee: | Lukáš Tinkl <lukas> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | kde, kdelibs-bugs, nate, nicolas.fella, plasma-bugs, qydwhotmail |
Priority: | NOR | Keywords: | drkonqi |
Version: | 5.89.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/solid/commit/233d11f91ed1b5660ffe9bdba495a3e7714017aa | Version Fixed In: | |
Sentry Crash Report: |
Description
Christopher Yeleighton
2022-01-12 16:22:32 UTC
I don't have a iPhone, but I guess `device` is freed before `idevice_free(device);` is called. *** Bug 451984 has been marked as a duplicate of this bug. *** A possibly relevant merge request was started @ https://invent.kde.org/frameworks/solid/-/merge_requests/110 Git commit 233d11f91ed1b5660ffe9bdba495a3e7714017aa by Kai Uwe Broulik. Committed on 28/11/2022 at 12:25. Pushed by broulik into branch 'master'. imobiledevice: Check error returned by idevice_new If the device we query for isn't known, the `device` pointer will remain untouched according to `idevice.c`, and we leave it dangling. Instead, check whether it returns `IDEVICE_E_SUCCESS`. M +6 -6 src/solid/devices/backends/imobile/imobiledevice.cpp https://invent.kde.org/frameworks/solid/commit/233d11f91ed1b5660ffe9bdba495a3e7714017aa |