3 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-10756
5 Patch copied from Fedora:
7 https://src.fedoraproject.org/rpms/transmission/blob/master/f/2123adf8e5e1c2b48791f9d22fc8c747e974180e.patch
9 --- a/libtransmission/variant.c 2018-05-01 12:21:08.000000000 -0500
10 +++ b/libtransmission/variant.c 2020-05-18 10:21:27.554214128 -0500
22 qsort (tmp, n, sizeof (struct KeyIndex), compareKeyIndex);
24 - tr_variantInitDict (&node->sorted, n);
25 + node->sorted = tr_new(tr_variant, 1);
26 + tr_variantInitDict (node->sorted, n);
28 - node->sorted.val.l.vals[i] = *tmp[i].val;
29 + node->sorted->val.l.vals[i] = *tmp[i].val;
30 node->sorted.val.l.count = n;
34 - node->v = &node->sorted;
40 + node->sorted = NULL;
47 nodeDestruct (struct SaveNode * node)
49 - if (node->v == &node->sorted)
50 - tr_free (node->sorted.val.l.vals);
51 + //TR_ASSERT(node != NULL);
52 + if (node->sorted != NULL)
54 + tr_free(node->sorted->val.l.vals);
55 + tr_free(node->sorted);
60 --- a/libtransmission/variant.c 2020-05-18 10:21:49.000000000 -0500
61 +++ b/libtransmission/variant.c 2020-05-18 10:24:34.673648865 -0500
63 tr_variantInitDict (node->sorted, n);
65 node->sorted->val.l.vals[i] = *tmp[i].val;
66 - node->sorted.val.l.count = n;
67 + node->sorted->val.l.count = n;