summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--external/epm/UnpackedTarball_epm.mk1
-rw-r--r--external/epm/asan.patch.015
2 files changed, 16 insertions, 0 deletions
diff --git a/external/epm/UnpackedTarball_epm.mk b/external/epm/UnpackedTarball_epm.mk
index 922800b52142..c064a5bacc1e 100644
--- a/external/epm/UnpackedTarball_epm.mk
+++ b/external/epm/UnpackedTarball_epm.mk
@@ -13,6 +13,7 @@ $(eval $(call gb_UnpackedTarball_set_tarball,epm,$(EPM_TARBALL),,epm))
$(eval $(call gb_UnpackedTarball_add_patches,epm,\
external/epm/epm-3.7.patch \
+ external/epm/asan.patch.0 \
))
# vim: set noet sw=4 ts=4:
diff --git a/external/epm/asan.patch.0 b/external/epm/asan.patch.0
new file mode 100644
index 000000000000..e3991eb1c569
--- /dev/null
+++ b/external/epm/asan.patch.0
@@ -0,0 +1,15 @@
+--- dist.c
++++ dist.c
+@@ -405,7 +405,11 @@
+ for (temp = platform->machine; *temp != '\0'; temp ++)
+ if (*temp == '-' || *temp == '_')
+ {
+- strcpy(temp, temp + 1);
++ for (char * t2 = temp;; ++t2) {
++ char c = t2[1];
++ t2[0] = c;
++ if (c == '\0') break;
++ }
+ temp --;
+ }
+ else