Skip to content

transaction: Release bundle GPG data as GBytes - #6842

Merged
swick merged 1 commit into
flatpak:mainfrom
razzeee:fix/blackbox-bundle-gpg-bytes
Sep 21, 2026
Merged

swick merged 1 commit into
flatpak:mainfrom
razzeee:fix/blackbox-bundle-gpg-bytes

Conversation

@razzeee

@razzeee razzeee commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

BundleData retains explicit GPG key data with g_bytes_ref(), but its cleanup treats the data as a GObject. This crashes transaction cleanup when a bundle is installed with explicit key bytes.

Use g_clear_pointer() with g_bytes_unref() to release the retained data.

BundleData retains explicit GPG key data with g_bytes_ref(), but its
cleanup treats the data as a GObject. This crashes transaction cleanup
when a bundle is installed with explicit key bytes.

Use g_clear_pointer() with g_bytes_unref() to release the retained data.
@swick
swick added this pull request to the merge queue Sep 21, 2026
@swick swick mentioned this pull request Sep 21, 2026
Merged via the queue into flatpak:main with commit 95b70b7 Sep 21, 2026
11 checks passed
@smcv

smcv commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Fixed in 1.18.3, will also be fixed in 1.19.1 when released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants