File: 05_fix_segfault.diff

package info (click to toggle)
rakarrack 0.6.1-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,136 kB
  • sloc: cpp: 27,705; sh: 787; makefile: 303
file content (22 lines) | stat: -rw-r--r-- 663 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Fix segfault with uninitialiized variable
 Ppreset is uninitialized in this function, which leads to a 
 segfault later on.

 Thanks to Ben Wiederhake for finding the details.

 The bug was forwarded to Ryan via private mail on 10 Mar 2018.

Author: Stefan Potyra <stefan@potyra.de>
Bug-Debian: https://bugs.debian.org/892077

--- rakarrack-0.6.1.orig/src/Looper.C
+++ rakarrack-0.6.1/src/Looper.C
@@ -28,7 +28,7 @@
 #include <math.h>
 #include "Looper.h"
 
-Looper::Looper (float * efxoutl_, float * efxoutr_, float size)
+Looper::Looper (float * efxoutl_, float * efxoutr_, float size) : Ppreset(0)
 {
   efxoutl = efxoutl_;
   efxoutr = efxoutr_;