diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-07-20 08:44:23 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-07-20 08:44:23 +0000 |
commit | 617a9b331dc33df2b771d681689effcb27784c50 (patch) | |
tree | 766636cb1fb22a428eac5555e5898dcf7c650902 /testing/libgpod/0001-323-Segmentation-fault-when-opening-ipod.patch | |
parent | f2b63db40b5e06abc48d2c7d18be0b7e18f728f5 (diff) | |
download | aports-617a9b331dc33df2b771d681689effcb27784c50.tar.bz2 aports-617a9b331dc33df2b771d681689effcb27784c50.tar.xz |
testing/libgpod: new aport
Diffstat (limited to 'testing/libgpod/0001-323-Segmentation-fault-when-opening-ipod.patch')
-rw-r--r-- | testing/libgpod/0001-323-Segmentation-fault-when-opening-ipod.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/libgpod/0001-323-Segmentation-fault-when-opening-ipod.patch b/testing/libgpod/0001-323-Segmentation-fault-when-opening-ipod.patch new file mode 100644 index 0000000000..727f18b370 --- /dev/null +++ b/testing/libgpod/0001-323-Segmentation-fault-when-opening-ipod.patch @@ -0,0 +1,43 @@ +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 + |