commit 5e610dc60badcd71e43fa536585a4d7baca9a8fa
Author: Vasiliy Glazov <vascom2(a)gmail.com>
Date: Thu Sep 23 08:43:11 2021 +0300
Add patch file.
segfault_fix.patch | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/segfault_fix.patch b/segfault_fix.patch
new file mode 100644
index 0000000..4bc4454
--- /dev/null
+++ b/segfault_fix.patch
@@ -0,0 +1,12 @@
+diff -uNdr deadbeef-1.8.8_orig/tf.c deadbeef-1.8.8_new/tf.c
+--- deadbeef-1.8.8_orig/tf.c 2021-08-01 20:00:05.000000000 +0300
++++ deadbeef-1.8.8_new/tf.c 2021-09-23 08:28:45.589428627 +0300
+@@ -3650,7 +3650,7 @@
+
+ c.i = script;
+
+- uint8_t code[strlen(script) * 3];
++ uint8_t code[strlen(script) * 3 + 1];
+ memset (code, 0, sizeof (code));
+
+ c.o = code;