Skip to content

Commit

Permalink
Prevent unbounded array growth in LfpDisplayNode
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed May 8, 2024
1 parent 1a49e0d commit 7955c74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Plugins/LfpDisplayNode/LfpDisplayNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ void LfpDisplayNode::handleTTLEvent(TTLEventPtr event)

void LfpDisplayNode::initializeEventChannels()
{
latestCurrentTrigger.insertMultiple(0, -1, 3); // reset to -1
for (int i = 0; i < 3; i++)
latestCurrentTrigger.set(i, -1); // reset to -1

for (auto displayBuffer : displayBuffers)
{
Expand Down

0 comments on commit 7955c74

Please sign in to comment.