summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-17 23:40:00 +0000
committerDavid Robillard <d@drobilla.net>2011-09-17 23:40:00 +0000
commit650a13f7c18a4caf4387c0845b708e2c2bf1625d (patch)
tree13149af7c0fbbb80a5ae42b3d869a312e14addd2 /src
parent5d294bae174c0f5a236a6bf18dd380ea6f9bf875 (diff)
downloadingen-650a13f7c18a4caf4387c0845b708e2c2bf1625d.tar.gz
ingen-650a13f7c18a4caf4387c0845b708e2c2bf1625d.tar.bz2
ingen-650a13f7c18a4caf4387c0845b708e2c2bf1625d.zip
Fix RingBuffer underrun and consequent execution of uninitialized Notification.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3472 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/server/PostProcessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp
index 5a54d728..3cd05992 100644
--- a/src/server/PostProcessor.cpp
+++ b/src/server/PostProcessor.cpp
@@ -75,7 +75,7 @@ PostProcessor::process()
if (driver) {
Notification note;
const uint32_t read_space = driver->context().event_sink().read_space();
- for (uint32_t i = 0; i <= read_space; i += sizeof(note)) {
+ for (uint32_t i = 0; i < read_space; i += sizeof(note)) {
driver->context().event_sink().read(sizeof(note), &note);
Notification::post_process(note, _engine);
}