Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghex for openSUSE:Factory checked in at 2026-05-29 18:12:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghex (Old) and /work/SRC/openSUSE:Factory/.ghex.new.1937 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghex" Fri May 29 18:12:14 2026 rev:83 rq:1355875 version:50.2 Changes: -------- --- /work/SRC/openSUSE:Factory/ghex/ghex.changes 2026-05-12 19:27:51.586049966 +0200 +++ /work/SRC/openSUSE:Factory/.ghex.new.1937/ghex.changes 2026-05-29 18:14:01.347667793 +0200 @@ -1,0 +2,11 @@ +Thu May 28 07:10:29 UTC 2026 - Bjørn Lie <[email protected]> + +- Update to version 50.2: + + Fixes for minor issues detected by goblint + + paste-special: Fix GError leak + + buf-malloc: Ensure payload_size is clamped to zero + + hex-doc: Plug GRegex leak and avoid possible strlen on null + pointer + + This release includes libgtkhex 4.12.1 + +------------------------------------------------------------------- Old: ---- ghex-50.1.tar.xz New: ---- ghex-50.2.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghex.spec ++++++ --- /var/tmp/diff_new_pack.JhxUCd/_old 2026-05-29 18:14:03.307749232 +0200 +++ /var/tmp/diff_new_pack.JhxUCd/_new 2026-05-29 18:14:03.319749731 +0200 @@ -22,7 +22,7 @@ %define soname libgtkhex-%{ghex_abi}-%{so_ver} Name: ghex -Version: 50.1 +Version: 50.2 Release: 0 Summary: GNOME Binary Editor License: GPL-2.0-or-later ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.JhxUCd/_old 2026-05-29 18:14:03.583760701 +0200 +++ /var/tmp/diff_new_pack.JhxUCd/_new 2026-05-29 18:14:03.619762197 +0200 @@ -1,5 +1,5 @@ -mtime: 1778483643 -commit: 23fd63b5361db087f5404fdaa6796b25f88b9d7cefdc5b23cf8b9accd1bd7216 +mtime: 1779952343 +commit: 0702656152f74004671fe379d79471dc5c3ccefc13ecb976417df0819e535936 url: https://src.opensuse.org/GNOME/ghex revision: factory ++++++ _service ++++++ --- /var/tmp/diff_new_pack.JhxUCd/_old 2026-05-29 18:14:03.863772335 +0200 +++ /var/tmp/diff_new_pack.JhxUCd/_new 2026-05-29 18:14:03.915774496 +0200 @@ -3,7 +3,7 @@ <service name="obs_scm" mode="manual"> <param name="scm">git</param> <param name="url">https://gitlab.gnome.org/GNOME/ghex.git</param> - <param name="revision">50.1</param> + <param name="revision">50.2</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-05-28 09:12:23.000000000 +0200 @@ -0,0 +1,5 @@ +*.obscpio +*.osc +_build.* +.pbuild +osc-collab.* ++++++ ghex-50.1.tar.xz -> ghex-50.2.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghex-50.1/NEWS new/ghex-50.2/NEWS --- old/ghex-50.1/NEWS 2026-05-11 00:17:30.000000000 +0200 +++ new/ghex-50.2/NEWS 2026-05-27 22:12:47.000000000 +0200 @@ -1,4 +1,17 @@ ========= +GHex 50.2 +========= + +Bugfixes since 50.1: +- Fixes for minor issues detected by goblint (Logan Rathbone) +- paste-special: Fix GError leak (Logan Rathbone) +- buf-malloc: Ensure payload_size is clamped to zero (Logan Rathbone) +- hex-doc: Plug GRegex leak and avoid possible strlen on null pointer (Logan + Rathbone) + +This release includes libgtkhex 4.12.1 + +========= GHex 50.1 ========= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghex-50.1/data/org.gnome.GHex.metainfo.xml.in.in new/ghex-50.2/data/org.gnome.GHex.metainfo.xml.in.in --- old/ghex-50.1/data/org.gnome.GHex.metainfo.xml.in.in 2026-05-11 00:17:30.000000000 +0200 +++ new/ghex-50.2/data/org.gnome.GHex.metainfo.xml.in.in 2026-05-27 22:12:47.000000000 +0200 @@ -30,6 +30,7 @@ <kudo>UserDocs</kudo> </kudos> <releases> + <release version="50.2" date="2026-05-27" /> <release version="50.1" date="2026-05-10" /> <release version="50.0" date="2026-03-16" /> </releases> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghex-50.1/meson.build new/ghex-50.2/meson.build --- old/ghex-50.1/meson.build 2026-05-11 00:17:30.000000000 +0200 +++ new/ghex-50.2/meson.build 2026-05-27 22:12:47.000000000 +0200 @@ -1,6 +1,6 @@ project( 'ghex', 'c', - version: '50.1', + version: '50.2', meson_version: '>=0.59.0', license: 'GPL2' ) @@ -39,7 +39,7 @@ libgtkhex_api_version = 4 libgtkhex_version_major = 1 # for soname (ABI major version) only libgtkhex_version_minor = 12 -libgtkhex_version_micro = 0 +libgtkhex_version_micro = 1 libgtkhex_version = '@0@.@1@.@2@'.format(libgtkhex_api_version, libgtkhex_version_minor, libgtkhex_version_micro) ghex_prefix = get_option('prefix') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghex-50.1/src/ghex-application-window.h new/ghex-50.2/src/ghex-application-window.h --- old/ghex-50.1/src/ghex-application-window.h 2026-05-11 00:17:30.000000000 +0200 +++ new/ghex-50.2/src/ghex-application-window.h 2026-05-27 22:12:47.000000000 +0200 @@ -52,8 +52,6 @@ GtkWidget * ghex_application_window_new (AdwApplication *app); void ghex_application_window_add_hex (GHexApplicationWindow *self, HexWidget *gh); -void ghex_application_window_set_hex (GHexApplicationWindow *self, - HexWidget *gh); void ghex_application_window_activate_tab (GHexApplicationWindow *self, HexWidget *gh); void ghex_application_window_open_file (GHexApplicationWindow *self, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghex-50.1/src/gtkhex-layout-manager.c new/ghex-50.2/src/gtkhex-layout-manager.c --- old/ghex-50.1/src/gtkhex-layout-manager.c 2026-05-11 00:17:30.000000000 +0200 +++ new/ghex-50.2/src/gtkhex-layout-manager.c 2026-05-27 22:12:47.000000000 +0200 @@ -136,7 +136,7 @@ { HexWidgetLayoutChild *self = HEX_WIDGET_LAYOUT_CHILD (gobject); - G_OBJECT_CLASS (hex_widget_layout_child_parent_class)->finalize (gobject); + G_OBJECT_CLASS (hex_widget_layout_child_parent_class)->dispose (gobject); } static void diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghex-50.1/src/hex-buffer-malloc.c new/ghex-50.2/src/hex-buffer-malloc.c --- old/ghex-50.1/src/hex-buffer-malloc.c 2026-05-11 00:17:30.000000000 +0200 +++ new/ghex-50.2/src/hex-buffer-malloc.c 2026-05-27 22:12:47.000000000 +0200 @@ -26,6 +26,12 @@ #include "hex-buffer-malloc.h" +#define _GNU_SOURCE + +#include <stdio.h> +#include <errno.h> +#include <stdint.h> + /* PROPERTIES */ enum @@ -125,7 +131,10 @@ gint64 file_size = hex_buffer_util_get_file_size (self->file); if (file_size < 0) + { + self->payload_size = 0; return FALSE; + } self->payload_size = file_size; return TRUE; @@ -280,6 +289,7 @@ self->gap_pos -= rep_len - len; self->gap_size += rep_len - len; self->payload_size += len - rep_len; + self->payload_size = CLAMP (self->payload_size, 0, INT64_MAX); } ptr = &self->buffer[offset]; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghex-50.1/src/hex-buffer-malloc.h new/ghex-50.2/src/hex-buffer-malloc.h --- old/ghex-50.1/src/hex-buffer-malloc.h 2026-05-11 00:17:30.000000000 +0200 +++ new/ghex-50.2/src/hex-buffer-malloc.h 2026-05-27 22:12:47.000000000 +0200 @@ -29,11 +29,6 @@ #include <hex-buffer-iface.h> -#define _GNU_SOURCE - -#include <stdio.h> -#include <errno.h> - G_BEGIN_DECLS #define HEX_TYPE_BUFFER_MALLOC hex_buffer_malloc_get_type () diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghex-50.1/src/hex-document.c new/ghex-50.2/src/hex-document.c --- old/ghex-50.1/src/hex-document.c 2026-05-11 00:17:30.000000000 +0200 +++ new/ghex-50.2/src/hex-document.c 2026-05-27 22:12:47.000000000 +0200 @@ -1349,10 +1349,10 @@ if (find_data->flags & HEX_SEARCH_REGEX) { - GRegex *regex; - GMatchInfo *match_info; - char *regex_search_str; - GRegexCompileFlags regex_compile_flags; + GRegex *regex = NULL; + GMatchInfo *match_info = NULL; + char *regex_search_str = NULL; + GRegexCompileFlags regex_compile_flags = 0; /* GRegex doesn't let you specify the length of the search string, so * it needs to be NULL-terminated. @@ -1392,9 +1392,12 @@ { char *word = g_match_info_fetch (match_info, 0); - find_data->found_len = strlen (word); - g_free (word); - retval = 0; + if (word) + { + find_data->found_len = strlen (word); + g_free (word); + retval = 0; + } } else { @@ -1406,6 +1409,9 @@ } retval = 1; } + + g_clear_pointer (&match_info, g_match_info_unref); + g_clear_pointer (®ex, g_regex_unref); } else /* non regex */ { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghex-50.1/src/hex-file-monitor.h new/ghex-50.2/src/hex-file-monitor.h --- old/ghex-50.1/src/hex-file-monitor.h 2026-05-11 00:17:30.000000000 +0200 +++ new/ghex-50.2/src/hex-file-monitor.h 2026-05-27 22:12:47.000000000 +0200 @@ -34,7 +34,6 @@ G_DECLARE_FINAL_TYPE (HexFileMonitor, hex_file_monitor, HEX, FILE_MONITOR, GObject) HexFileMonitor * hex_file_monitor_new (GFile *file); -gboolean hex_file_monitor_set_file (HexFileMonitor *monitor, GFile *file); gboolean hex_file_monitor_get_changed (HexFileMonitor *monitor); void hex_file_monitor_reset (HexFileMonitor *monitor); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ghex-50.1/src/paste-special.c new/ghex-50.2/src/paste-special.c --- old/ghex-50.1/src/paste-special.c 2026-05-11 00:17:30.000000000 +0200 +++ new/ghex-50.2/src/paste-special.c 2026-05-27 22:12:47.000000000 +0200 @@ -677,6 +677,8 @@ gtk_list_box_append (GTK_LIST_BOX(paste_special_listbox), label); } } + + g_clear_error (&error); } static void ++++++ ghex.obsinfo ++++++ --- /var/tmp/diff_new_pack.JhxUCd/_old 2026-05-29 18:14:07.187910451 +0200 +++ /var/tmp/diff_new_pack.JhxUCd/_new 2026-05-29 18:14:07.231912279 +0200 @@ -1,5 +1,5 @@ name: ghex -version: 50.1 -mtime: 1778451450 -commit: 7f261ce922c79bd1f14f48b0f84b59f77a508fbc +version: 50.2 +mtime: 1779912767 +commit: 6972596386bcf82c10ba8371d54e678b6aa091af
