Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flatpak-prune: Make sure to calculate hash in the unsigned domain #5738

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions common/flatpak-prune.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,10 @@ flatpak_ostree_object_name_hash (gconstpointer a)
those are the ones that will be first compared on a hash collision,
so if they were always the same that would waste 4 comparisons. */
return
data[32] |
data[31] << 8 |
data[30] << 16 |
data[29] << 24;
((guint32) data[32]) |
((guint32) data[31]) << 8 |
((guint32) data[30]) << 16 |
((guint32) data[29]) << 24;
GeorgesStavracas marked this conversation as resolved.
Show resolved Hide resolved
}

static gboolean
Expand Down