Skip to content

Commit

Permalink
fix out of bounds access with ASAN (from mubu.gvf.maxtest)
Browse files Browse the repository at this point in the history
  • Loading branch information
diemoschwarz committed Oct 17, 2024
1 parent 2b7330a commit 4c0aa57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GVFlib/GVF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,9 @@ void GVF::estimates()

for(int n = 0; n < numOfPart; n++)
{
probabilityNormalisation[classes[n]] += posterior[n];
int classIndex = classes[n];
if(classIndex < getNumberOfGestureTemplates())
probabilityNormalisation[classes[n]] += posterior[n];
}


Expand Down

0 comments on commit 4c0aa57

Please sign in to comment.