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:
parent
a95ce12b91
commit
70f3c78218
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user