Fix clang address sanitiser error in SNI memcpy.
ClosedPublic

Authored by davidedmundson on Jan 18 2017, 10:47 PM.

Details

Summary

If an image is created with no size, QImage::data() points to nullptr.
We then pass this as an argument to memcpy. It doesn't really matter
because we're copying 0 bytes into it, but it's still thrown as an
error.

plasma-
workspace/dataengines/statusnotifieritem/statusnotifieritemsource.cpp:401:12:
runtime error: null pointer passed as argument 1, which is declared to
never be null

Test Plan

Ran it again. No error

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
davidedmundson retitled this revision from to Fix clang address sanitiser error in SNI memcpy..
davidedmundson updated this object.
davidedmundson edited the test plan for this revision. (Show Details)
davidedmundson added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptJan 18 2017, 10:47 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
apol accepted this revision.Jan 18 2017, 11:45 PM
apol added a reviewer: apol.
This revision is now accepted and ready to land.Jan 18 2017, 11:45 PM
This revision was automatically updated to reflect the committed changes.