diff src/librsb.mk @ 5579:2734b3818171

Avoid double-free with librsb (bug #58957). * src/librsb.mk: Add work-around to avoid double-free (provided by Michele Martone). * src/mingw-of-sparsersb-1-no-render.patch: Remove patch. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 02 Nov 2020 08:55:18 +0100
parents 90e3f78b2304
children 2db7f803d55d
line wrap: on
line diff
--- a/src/librsb.mk	Sat Oct 31 19:13:51 2020 +0100
+++ b/src/librsb.mk	Mon Nov 02 08:55:18 2020 +0100
@@ -20,6 +20,10 @@
 endef
 
 define $(PKG)_BUILD
+    # This is a work-around for a bug in version 1.2.0.9.
+    # Remove the following command once this is fixed upstream.
+    $(SED) -i 's/.A.=.rsb__real.*\([,;]\)/1\1/g' $(1)/rsb_eps.c
+
     cd '$(1)' && autoreconf -fi && ./configure \
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
         --prefix='$(HOST_PREFIX)' \