slackware-current/source/l/libgpod/0001-323-Segmentation-fault-when-opening-ipod.patch
Patrick J Volkerding dc90ac8e73 Sat Dec 2 20:46:52 UTC 2023
a/upower-1.90.1-x86_64-2.txz:  Rebuilt.
  Recompiled against libplist-2.3.0.
ap/usbmuxd-20231011_360619c-x86_64-1.txz:  Upgraded.
  Compiled against libplist-2.3.0.
kde/kio-extras-23.08.3-x86_64-2.txz:  Rebuilt.
  Recompiled against libplist-2.3.0.
kde/libindi-2.0.5-x86_64-1.txz:  Upgraded.
kde/solid-5.112.0-x86_64-2.txz:  Rebuilt.
  Recompiled against libplist-2.3.0.
l/gvfs-1.52.1-x86_64-2.txz:  Rebuilt.
  Recompiled against libplist-2.3.0.
l/libgpod-0.8.3-x86_64-13.txz:  Rebuilt.
  Recompiled against libplist-2.3.0.
l/libimobiledevice-20231007_04c0233-x86_64-1.txz:  Upgraded.
  Compiled against libplist-2.3.0.
l/libimobiledevice-glue-20231110_e314faa-x86_64-1.txz:  Upgraded.
  Compiled against libplist-2.3.0.
l/libplist-2.3.0-x86_64-1.txz:  Upgraded.
  Shared library .so-version bump.
l/libseccomp-2.5.5-x86_64-1.txz:  Upgraded.
l/libusbmuxd-20230901_30e678d-x86_64-1.txz:  Upgraded.
  Compiled against libplist-2.3.0.
l/poppler-23.12.0-x86_64-1.txz:  Upgraded.
xfce/tumbler-4.18.2-x86_64-1.txz:  Upgraded.
2023-12-02 22:28:02 +01:00

43 lines
1.4 KiB
Diff

From 8dc5015ae036b219c4c9579a156886aa3a722aa5 Mon Sep 17 00:00:00 2001
From: phantomjinx <p.g.richardson@phantomjinx.co.uk>
Date: Sat, 9 Aug 2014 19:57:10 +0100
Subject: [PATCH] #323 Segmentation fault when opening ipod
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Patch submitted in bug report from François Melchior / James Burton
---
src/itdb_itunesdb.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 4cc771a..1e85476 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -1156,6 +1156,7 @@ static gboolean playcounts_plist_read (FImport *fimp, GValue *plist_data)
GHashTable *pc_dict, *track_dict;
GValue *to_parse;
GArray *array;
+ GValue value;
gint i;
guint32 mac_time;
guint64 *dbid;
@@ -1175,11 +1176,12 @@ static gboolean playcounts_plist_read (FImport *fimp, GValue *plist_data)
array = (GArray*)g_value_get_boxed (to_parse);
for (i = 0; i < array->len; i++) {
- if (!G_VALUE_HOLDS (g_array_index (array, GValue *, i), G_TYPE_HASH_TABLE)) {
+ value = g_array_index (array, GValue, i);
+ if (!G_VALUE_HOLDS (&value, G_TYPE_HASH_TABLE)) {
continue;
}
- track_dict = g_value_get_boxed (g_array_index (array, GValue *, i));
+ track_dict = g_value_get_boxed (&value);
if (track_dict == NULL)
continue;
--
2.12.2