Navigation Menu

Skip to content

Commit

Permalink
Fix potential out of bounds reference in qtermwidget
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 17, 2023
1 parent 90f4b69 commit 940ffac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/grass/qtermwidget/History.cpp
Expand Up @@ -580,6 +580,9 @@ void CompactHistoryBlockList::deallocate(void* ptr)
while ( i<list.size() && !block->contains(ptr) )
{
i++;
if ( i >= list.size() )
break;

block=list.at(i);
}

Expand Down

0 comments on commit 940ffac

Please sign in to comment.