ports/contrib (3.7): mdds: pulled patch from libreoffice
commit 0a6be4df3ca1038cfbdee66c81e459646bad24fe Author: Tim Biermann <tbier@posteo.de> Date: Sat Jan 28 13:00:11 2023 +0100 mdds: pulled patch from libreoffice diff --git a/mdds/.signature b/mdds/.signature index 7403eb95b..2ed02c41c 100644 --- a/mdds/.signature +++ b/mdds/.signature @@ -1,5 +1,6 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF324NCKl1So/TFIcKdSTzKZ3kGW0AOmthjPXVOmazToAj529hHm/fPbfhsXVTg+Fol1ezkWZhTXCZIaBa1yxYBA0= -SHA256 (Pkgfile) = 1153de26adf1a189621b86acb186c26bd082b0958a5644179ecc5ea1247ee568 +RWSagIOpLGJF33Rl6gxgP2PsULD+GNyl2p+WBN7nR3GtRv5FVymzzE+shIN9UUwsnoc2+QUIht3F8woAbQJJB6XvAD+c2KLojQo= +SHA256 (Pkgfile) = 0be7aac63808419c8a56fa12a9938aeab5e7ed39bff1d4d66eac1385558fd572 SHA256 (.footprint) = bdd2e92384b0cf3a68e264a916de80f0426cade09c615f2d150686e87d146fb7 SHA256 (mdds-2.1.0.tar.bz2) = 3359f70624f2358a773acb39c0ebf2f36954c01895fc9c0f60e1ab0916bd07e0 +SHA256 (use-after-free.patch) = bbbadec82835a641be6d6abf0f05dc5e64ef898e0760f17094a2f63e42e42543 diff --git a/mdds/Pkgfile b/mdds/Pkgfile index 0f51c4595..136e52966 100644 --- a/mdds/Pkgfile +++ b/mdds/Pkgfile @@ -5,12 +5,17 @@ name=mdds version=2.1.0 -release=1 -source=(https://kohei.us/files/mdds/src/$name-$version.tar.bz2) +release=2 +source=(https://kohei.us/files/mdds/src/$name-$version.tar.bz2 + use-after-free.patch) build() { cd $name-$version + + patch -Np0 -i $SRC/use-after-free.patch + ./autogen.sh --prefix=/usr make DESTDIR=$PKG install + rm -fr $PKG/usr/share/doc } diff --git a/mdds/use-after-free.patch b/mdds/use-after-free.patch new file mode 100644 index 000000000..981c94582 --- /dev/null +++ b/mdds/use-after-free.patch @@ -0,0 +1,12 @@ +--- include/mdds/flat_segment_tree_def.inl ++++ include/mdds/flat_segment_tree_def.inl +@@ -84,8 +84,8 @@ + // Move on to the next destination node, and have the next node point + // back to the previous node. + node_ptr old_node = dest_node; ++ dest_node->next->prev = old_node; + dest_node = dest_node->next; +- dest_node->prev = old_node; + + if (src_node == r.m_right_leaf.get()) + {
participants (1)
-
crux@crux.nu