qt6-bb10/src
Axel Spoerl 1914f62c31 QMainWindowPrivate::layout - use QPointer instead of bare pointer
qt_mainwindow_layout(mainWindow) returns the pointer to a stale object,
if the layout has already been deleted.

Most users of qt_mainwindow_layout() assert the returned pointer, or
handle nullptr explicitly. If the mainwindow layout has already been
deleted, they will still access it. While this has not lead to (known)
issues yet, a UAF exception is thrown in an ASAN build.

=> Use a QPointer instead of a bare pointer.
=> Add missing nullptr check in QDockWidgetPrivate::endDrag()

Pick-to: 6.6 6.5
Change-Id: I3484b53e0e2213b82085ceed3ffa66913947189f
Reviewed-by: David Faure <david.faure@kdab.com>
2023-12-05 12:37:27 +01:00
..
3rdparty SQLite: Update SQLite to v3.44.2 2023-12-04 22:13:26 +01:00
android Android: fix mis-use of AccessibilityNodeInfo.addAction() 2023-11-30 17:26:27 +02:00
assets Add XDG theme file for example icons 2023-06-26 17:32:10 +00:00
concurrent Doc: Fix \fn template arguments for Qt Concurrent 2023-11-18 13:01:53 +01:00
corelib CMake: Generate deployment information for each deployable target 2023-12-04 21:18:25 +01:00
dbus Remove the DBusMessage* members from QDBusMessagePrivate 2023-12-01 14:06:03 +01:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui QVulkanWindow: sync surface size logic with QRhi 2023-12-04 16:04:18 +01:00
network Rename EINTR_LOOP -> QT_EINTR_LOOP 2023-11-30 22:52:11 +01:00
opengl Doc: Fix \fn template arguments for Qt OpenGL 2023-11-18 10:31:35 +01:00
openglwidgets QOpenGLWidget: Call glClear in the default paintGL implementation 2023-09-04 11:46:29 +02:00
platformsupport Rename QWSI::handleWindowActivated to QWSI::handleFocusWindowChanged 2023-11-23 02:37:12 +01:00
plugins macOS: Deliver touch events synchronously 2023-12-05 09:20:43 +01:00
printsupport QWin32PrintEnginePrivate: Properly initialize flags and fields of DEVMODE 2023-11-22 05:56:25 +01:00
sql Highlight some examples for 'Data Processing & IO' category 2023-10-31 19:35:59 +02:00
testlib Silence a warning in release build 2023-12-01 13:22:00 +02:00
tools Add the 'IWYU pragma: export' record to all CaMeL-case header aliases 2023-12-04 16:04:18 +01:00
widgets QMainWindowPrivate::layout - use QPointer instead of bare pointer 2023-12-05 12:37:27 +01:00
xml Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
CMakeLists.txt Add Qt icon library for examples 2023-04-22 18:14:38 +03:00