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>
This commit is contained in:
Samuel Rødal 2012-09-17 17:18:58 +02:00 committed by Qt by Nokia
parent a95ce12b91
commit 70f3c78218

View File

@ -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);