Browse Source

fix out of bounds array write

pull/1639/head
bsp2 6 years ago
parent
commit
190f5e6707
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      plugins/community/repos/LindenbergResearch/src/dsp/DSPSystem.hpp
  2. +1
    -1
      plugins/community/repos/LindenbergResearch/src/dsp/Oscillator.hpp

+ 3
- 3
plugins/community/repos/LindenbergResearch/src/dsp/DSPSystem.hpp View File

@@ -54,8 +54,8 @@ protected:
DSPPort output[NUM_OUT + 1];
DSPParam param[NUM_PARAM + 1];
#else
DSPPort input[NUM_IN] = {};
DSPPort output[NUM_OUT] = {};
DSPPort input[NUM_IN + 1] = {};
DSPPort output[NUM_OUT + 1] = {};
DSPParam param[NUM_PARAM] = {};
#endif

@@ -299,4 +299,4 @@ public:
* @brief Shortcut for a classic z^-1 delay (1-Sample)
*/
typedef DSPDelay<1> DSPDelay1;
}
}

+ 1
- 1
plugins/community/repos/LindenbergResearch/src/dsp/Oscillator.hpp View File

@@ -124,7 +124,7 @@ public:
};


struct DSPBLOscillator : DSPSystem<4, 6, 10> {
struct DSPBLOscillator : DSPSystem<5, 5, 10> {
/**
* Bandwidth-limited threshold in hz.
* Should be at least SR/2 !


Loading…
Cancel
Save