diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2012-09-17 17:18:58 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-18 03:34:08 +0200 |
commit | 70f3c78218c59d1029ea47d1b4fcc869a747f268 (patch) | |
tree | bae62a69eb15add640a5f860ac30bd43d5ce8114 /src/plugins/platforms/xcb | |
parent | a95ce12b917681f72e5362992803fad4209008c5 (diff) |
Prevent buffer overflow in QXcbWindow.
Thanks to Janne Kulmala for noticing this and informing about the fix.
Task-number: QTBUG-27123
Change-Id: Idd3cfd74fb7be277b6d805446aea5784b8fdf2f6
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/plugins/platforms/xcb')
-rw-r--r-- | src/plugins/platforms/xcb/qxcbwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbwindow.cpp b/src/plugins/platforms/xcb/qxcbwindow.cpp index e1e8c9ee67..53bf9f62e2 100644 --- a/src/plugins/platforms/xcb/qxcbwindow.cpp +++ b/src/plugins/platforms/xcb/qxcbwindow.cpp @@ -306,7 +306,7 @@ void QXcbWindow::create() propagateSizeHints(); - xcb_atom_t properties[4]; + xcb_atom_t properties[5]; int propertyCount = 0; properties[propertyCount++] = atom(QXcbAtom::WM_DELETE_WINDOW); properties[propertyCount++] = atom(QXcbAtom::WM_TAKE_FOCUS); |