Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4a595cb authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Fix benign overflow in OMXNodeInstance

Change-Id: I7470bddb7ade97143ba70c026e3b7d61dd8d97b0
parent 992debec
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1589,7 +1589,8 @@ void OMXNodeInstance::removeActiveBuffer(
void OMXNodeInstance::freeActiveBuffers() {
    // Make sure to count down here, as freeBuffer will in turn remove
    // the active buffer from the vector...
    for (size_t i = mActiveBuffers.size(); i--;) {
    for (size_t i = mActiveBuffers.size(); i;) {
        i--;
        freeBuffer(mActiveBuffers[i].mPortIndex, mActiveBuffers[i].mID);
    }
}