diff options
| author | Paul Olav Tvete <paul.tvete@qt.io> | 2020-12-23 13:18:04 +0100 |
|---|---|---|
| committer | Paul Olav Tvete <paul.tvete@qt.io> | 2020-12-23 15:25:02 +0100 |
| commit | c80d6473fbeb43074fb63db66e162e76cb2bf3ef (patch) | |
| tree | 23703fe65d69a19fc05c3c6209cafad654929f2c /src/concurrent/doc/snippets | |
| parent | 3729d37dd9ad38044242097adaa4bd74e2d5de87 (diff) | |
Fix out-of-bounds write
Change ac210c73e4 introduced the requirement that all input devices with
Scroll capability must have a QXcbScrollingDevicePrivate as their d_ptr.
However, this was not enforced, and would fail for the "Virtual core
pointer".
To fix this, always use qobject_cast to verify that the device is of the
correct type.
Change-Id: I4a6b1d4d79308eb04e9f52dda00294fffe377bdf
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/concurrent/doc/snippets')
0 files changed, 0 insertions, 0 deletions
