File: fix-buffer-overflow.patch

package info (click to toggle)
cmt 1.18-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 608 kB
  • sloc: cpp: 7,000; makefile: 98
file content (21 lines) | stat: -rw-r--r-- 829 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: fix buffer overflow of ladspa port
 The array dimension is to small to hold all the ladspa port data. This patch
 fixes the bug.
Author: Joël Krähemann
Origin: other
Last-Update: 2026-02-16
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: cmt/src/delay.cpp
===================================================================
--- cmt.orig/src/delay.cpp	2026-02-16 13:48:12.315171408 +0100
+++ cmt/src/delay.cpp	2026-02-16 14:10:15.303568260 +0100
@@ -88,7 +88,7 @@
 
   DelayLine(const unsigned long lSampleRate,
 	    const LADSPA_Data fMaximumDelay) 
-    : CMT_PluginInstance(4),
+    : CMT_PluginInstance(DELAY_LENGTH_COUNT),
       m_fSampleRate(LADSPA_Data(lSampleRate)),
       m_fMaximumDelay(fMaximumDelay) {
     /* Buffer size is a power of two bigger than max delay time. */