| Summary: | skanpage/skanlite crash in KSaneCore::Option::name() with libksane/ksanecore 25.08.0 | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] libksane | Reporter: | Gilles Gagniard <gilles> |
| Component: | general | Assignee: | Kåre Särs <kare.sars> |
| Status: | CONFIRMED --- | ||
| Severity: | crash | CC: | a.stippich, arojas |
| Priority: | NOR | ||
| Version First Reported In: | 25.08.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Fix for crash with null options | ||
|
Description
Gilles Gagniard
2025-09-02 20:11:27 UTC
> KSaneCore::Option::name() is called with a null pointer ... > Indeed, https://invent.kde.org/libraries/ksanecore/-/commit/f7fb8b0ad1470c27677e3805f1f8ac85991249bf moved the sourceOption->name() dereference before the null pointer check... Created attachment 185464 [details]
Fix for crash with null options
This patch seems to do the trick for me, as I can start SKanPage and then successfully scan.
Thanks for the patch! :) Do you want to make a MR at https://invent.kde.org/libraries/ksanecore/-/merge_requests If not I can do it next week (In reply to Kåre Särs from comment #3) > Thanks for the patch! :) > > Do you want to make a MR at > https://invent.kde.org/libraries/ksanecore/-/merge_requests > > If not I can do it next week Done: https://invent.kde.org/libraries/ksanecore/-/merge_requests/35 |