(release/25.1) rootless: Keep the screen pixmap header consistent with its allocation - #3594
Conversation
RootlessUpdateScreenPixmap freed the old backing store before attempting the replacement allocation and returned early on failure, leaving the screen pixmap's devPrivate.ptr pointing at freed memory. The published geometry was also only refreshed when the buffer grew, so a screen that shrinks kept advertising its previous, larger size. Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
…s allocation RootlessUpdateScreenPixmap freed the old backing store before attempting the replacement allocation and returned early on failure, leaving the screen pixmap's devPrivate.ptr pointing at freed memory. The published geometry was also only refreshed when the buffer grew, so a screen that shrinks kept advertising its previous, larger size. Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> PR: #3594
Two real bugs fixed, both correct:
Also adds a null-pixmap guard after The ABI: Looks good. |
RootlessUpdateScreenPixmap freed the old backing store before attempting the replacement allocation and returned early
on failure, leaving the screen pixmap's devPrivate.ptr pointing at freed memory.
The published geometry was also only refreshed when the buffer grew, so a screen that shrinks kept advertising its
previous, larger size.
Signed-off-by: Jeremy Huddleston Sequoia jeremyhu@apple.com