From 5e610dc60badcd71e43fa536585a4d7baca9a8fa Mon Sep 17 00:00:00 2001 From: Vasiliy Glazov Date: Thu, 23 Sep 2021 08:43:11 +0300 Subject: [PATCH] Add patch file. --- segfault_fix.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 segfault_fix.patch 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;