mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
e216d9c6ad
The size of the buffer the texture will be written to by paint_to_buffer() is determined based on meta_screen_cast_area_stream_src_get_specs() which uses roundf() to calculate the width and height after scaling. Because the size of the texture to be written to that buffer is calculated using ceilf(), it might exceed the allocated buffer when using fractional scaling. In 3.36 paint_to_buffer() is used from capture_view() which also uses roundf() to allocate its buffer. Here this leads to a memory corruption resulting in a crash when taking screenshots of an area. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2842 https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1320 |
||
---|---|---|
.. | ||
clutter | ||
.gitignore | ||
meson.build |