Bug 421074 - Checking if pointers are null after using it in KoColorConversionSystem.cpp
Summary: Checking if pointers are null after using it in KoColorConversionSystem.cpp
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-05 19:54 UTC by Rafał Mikrut
Modified: 2020-05-06 08:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mikrut 2020-05-05 19:54:42 UTC
```c
     if (*srcColorSpace == *dstColorSpace) {
        return new KoCopyColorConversionTransformation(srcColorSpace);
    }
    Q_ASSERT(srcColorSpace);
    Q_ASSERT(dstColorSpace);

```


https://invent.kde.org/kde/krita/-/blob/master/libs/pigment/KoColorConversionSystem.cpp#L236-240
Comment 1 Halla Rempt 2020-05-06 08:12:11 UTC
Git commit c89a655663c34cca2d6989e8bb5aaf7b421ca0b9 by Boudewijn Rempt.
Committed on 06/05/2020 at 08:08.
Pushed by rempt into branch 'krita/4.3'.

Check pointer before use

M  +2    -2    libs/pigment/KoColorConversionSystem.cpp

https://invent.kde.org/kde/krita/commit/c89a655663c34cca2d6989e8bb5aaf7b421ca0b9