diff options
author | Jan Grulich <jgrulich@redhat.com> | 2022-03-30 12:14:50 +0200 |
---|---|---|
committer | Jan Grulich <jgrulich@redhat.com> | 2022-03-30 12:14:50 +0200 |
commit | 70203c58f508d6875b4b39172ffeb88122a1d3c6 (patch) | |
tree | 5a41c4d5bf6d7b6db31d31acf9caffc2285b3723 | |
parent | Added 0001-GLIBCXX-fix-for-GCC-12.patch back due to gcc failure (diff) | |
download | librewolf-fedora-ff-70203c58f508d6875b4b39172ffeb88122a1d3c6.tar.gz librewolf-fedora-ff-70203c58f508d6875b4b39172ffeb88122a1d3c6.tar.bz2 librewolf-fedora-ff-70203c58f508d6875b4b39172ffeb88122a1d3c6.zip |
Wayland screensharing: avoid potential crash when cursor metadata are not set
-rw-r--r-- | firefox.spec | 5 | ||||
-rw-r--r-- | libwebrtc-screen-cast-sync.patch | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/firefox.spec b/firefox.spec index 6e03434..0cc6727 100644 --- a/firefox.spec +++ b/firefox.spec @@ -163,7 +163,7 @@ ExcludeArch: aarch64 Summary: Mozilla Firefox Web browser Name: firefox Version: 98.0 -Release: 3%{?pre_tag}%{?dist} +Release: 4%{?pre_tag}%{?dist} URL: https://www.mozilla.org/firefox/ License: MPLv1.1 or GPLv2+ or LGPLv2+ Source0: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz @@ -1079,6 +1079,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : #--------------------------------------------------------------------- %changelog +* Wed Mar 30 2022 Jan Grulich <jgrulich@redhat.com> - 98.0-4 +- Wayland screensharing: avoid potential crash when cursor metadata are not set + * Wed Mar 16 2022 Martin Stransky <stransky@redhat.com> - 98.0-3 - Added a workaround for rhbz#2063961 diff --git a/libwebrtc-screen-cast-sync.patch b/libwebrtc-screen-cast-sync.patch index da909ee..09bfd0f 100644 --- a/libwebrtc-screen-cast-sync.patch +++ b/libwebrtc-screen-cast-sync.patch @@ -9344,7 +9344,7 @@ index 0000000..c6ba661 + const struct spa_meta_cursor* cursor = + static_cast<struct spa_meta_cursor*>(spa_buffer_find_meta_data( + spa_buffer, SPA_META_Cursor, sizeof(*cursor))); -+ if (spa_meta_cursor_is_valid(cursor)) { ++ if (cursor && spa_meta_cursor_is_valid(cursor)) { + struct spa_meta_bitmap* bitmap = nullptr; + + if (cursor->bitmap_offset) |