diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2016-10-10 16:09:32 +0200 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2016-10-12 09:33:05 +0000 |
| commit | f4fff02cbb1f9399f407c15a27741c6cd1a17133 (patch) | |
| tree | 0c8e6311eebf3bcf6ce01af0efbaf7b5c732105e /src/gui/opengl/qopenglframebufferobject.cpp | |
| parent | de48fd192b7973c4849ec79bce4cd491b5e8550f (diff) | |
QXcbShmImage: don't use shmget()'s return unless it succeeds
When shmget() failed, we didn't set m_shm_info.shmid (not even to the
-1 failure id) but did pass it (i.e. uninitialized noise) to shmat(),
among other related functions. Guard against this; handle failure
gracefully.
Task-number: QTBUG-56419
Change-Id: Ie823c36c2ede03af6cb5d94ce7b4b5cd543c1008
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: Błażej Szczygieł <spaz16@wp.pl>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Reviewed-by: Joni Poikelin <joni.poikelin@qt.io>
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/gui/opengl/qopenglframebufferobject.cpp')
0 files changed, 0 insertions, 0 deletions
