Debian Patches

Status for appstream/1.0.6-2

Patch Description Author Forwarded Bugs Origin Last update
01_validator_fix-possible-double-dereference.patch [PATCH] validator: Fix possible double dereference of the same issue instance

When propagating desktop-file issues to the main issue list, we weren't
increasing the issue instance's refcount when adding it to the
id-mapping hashtable, which is wrong. So far, this was not a major issue
as the by-file map also held a reference, and both the by-id and by-file
hashtables are deleted together. Unfortunately, we delete the latter
first now, which creates this warning from GLib:

GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT
(object)' failed

Doing proper memory management fixes the issue and the destruction order
now no longer matters.
Autoformatting also made this code really hard to read, so this patch
also reduces its nesting level to make the code easier to understand.
Matthias Klumpp <matthias@tenstral.net> no 2025-08-28

All known versions for source package 'appstream'

Links