Fix clang address sanitiser error in SNI memcpy.

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



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

runtime error: null pointer passed as argument 1, which is declared to
never be null

Test Plan

Ran it again. No error

Diff Detail

R120 Plasma Workspace
Automatic diff as part of commit; lint not applicable.
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.