Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hyprwayland-scanner for 
openSUSE:Factory checked in at 2024-06-20 16:47:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hyprwayland-scanner (Old)
 and      /work/SRC/openSUSE:Factory/.hyprwayland-scanner.new.18349 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hyprwayland-scanner"

Thu Jun 20 16:47:14 2024 rev:3 rq:1181740 version:0.3.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/hyprwayland-scanner/hyprwayland-scanner.changes  
2024-06-11 18:29:08.536537897 +0200
+++ 
/work/SRC/openSUSE:Factory/.hyprwayland-scanner.new.18349/hyprwayland-scanner.changes
       2024-06-20 16:47:44.502773618 +0200
@@ -1,0 +2,7 @@
+Fri Jun 14 10:37:37 UTC 2024 - Dawid Adam <nys...@gmail.com>
+
+- Update to 0.3.10:
+  * core: set resource to nullptr in onDestroyCalled
+  * source: ignore send... requests when resource is null
+
+-------------------------------------------------------------------

Old:
----
  hyprwayland-scanner-0.3.9.obscpio

New:
----
  hyprwayland-scanner-0.3.10.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ hyprwayland-scanner.spec ++++++
--- /var/tmp/diff_new_pack.1yMQT9/_old  2024-06-20 16:47:45.226799083 +0200
+++ /var/tmp/diff_new_pack.1yMQT9/_new  2024-06-20 16:47:45.230799224 +0200
@@ -18,7 +18,7 @@
 
 
 Name:           hyprwayland-scanner
-Version:        0.3.9
+Version:        0.3.10
 Release:        0
 Summary:        Hyprland implementation of wayland-scanner
 License:        BSD-3-Clause

++++++ hyprwayland-scanner-0.3.9.obscpio -> hyprwayland-scanner-0.3.10.obscpio 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hyprwayland-scanner-0.3.9/CMakeLists.txt 
new/hyprwayland-scanner-0.3.10/CMakeLists.txt
--- old/hyprwayland-scanner-0.3.9/CMakeLists.txt        2024-06-01 
17:15:19.000000000 +0200
+++ new/hyprwayland-scanner-0.3.10/CMakeLists.txt       2024-06-07 
20:28:26.000000000 +0200
@@ -1,6 +1,6 @@
 cmake_minimum_required(VERSION 3.19)
 
-set(VERSION 0.3.9)
+set(VERSION 0.3.10)
 
 project(hyprwayland-scanner
     DESCRIPTION "A hyprland version of wayland-scanner in and for C++"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/hyprwayland-scanner-0.3.9/src/main.cpp 
new/hyprwayland-scanner-0.3.10/src/main.cpp
--- old/hyprwayland-scanner-0.3.9/src/main.cpp  2024-06-01 17:15:19.000000000 
+0200
+++ new/hyprwayland-scanner-0.3.10/src/main.cpp 2024-06-07 20:28:26.000000000 
+0200
@@ -598,6 +598,8 @@
 
             SOURCE += std::format(R"#(
 void {}::{}({}) {{
+    if (!pResource)
+        return;
     wl_resource_post_event(pResource, {}{});
 }}
 )#",
@@ -631,6 +633,8 @@
 
             SOURCE += std::format(R"#(
 void {}::{}({}) {{
+    if (!pResource)
+        return;
     wl_resource_post_event(pResource, {}{});
 }}
 )#",
@@ -746,7 +750,7 @@
 
     // if we still own the wayland resource,
     // it means we need to destroy it.
-    if (wl_resource_get_user_data(pResource) == this) {{
+    if (pResource && wl_resource_get_user_data(pResource) == this) {{
         wl_resource_set_user_data(pResource, nullptr);
         wl_resource_destroy(pResource);
     }}
@@ -757,6 +761,11 @@
     wl_list_remove(&resourceDestroyListener.link);
     wl_list_init(&resourceDestroyListener.link);
 
+    // set the resource to nullptr,
+    // as it will be freed. If the consumer does not destroy this resource
+    // in onDestroy here, we'd be doing a UAF in the ~dtor
+    pResource = nullptr;
+
     if (onDestroy)
         onDestroy(this);
 }}

++++++ hyprwayland-scanner.obsinfo ++++++
--- /var/tmp/diff_new_pack.1yMQT9/_old  2024-06-20 16:47:45.362803867 +0200
+++ /var/tmp/diff_new_pack.1yMQT9/_new  2024-06-20 16:47:45.366804007 +0200
@@ -1,5 +1,5 @@
 name: hyprwayland-scanner
-version: 0.3.9
-mtime: 1717254919
-commit: b06c0b8e56bd73c42218148efd8600c5e9fd6619
+version: 0.3.10
+mtime: 1717784906
+commit: 0f30f9eca6e404130988554accbb64d1c9ec877d
 

Reply via email to