From 44ef490e9a16b774af9b51c47e4f53c2265e5f44 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 10 Oct 2011 00:18:56 +0200 Subject: Avoid PPMSum buffer overrun. --- ppmsum.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ppmsum.cpp b/ppmsum.cpp index 927efa8..506b964 100644 --- a/ppmsum.cpp +++ b/ppmsum.cpp @@ -36,6 +36,7 @@ void PPMSum::irq() { index = 0; } else { index++; + index &= 0xf; } } else if(sr & 0x04) { -- cgit v1.2.3