Skip to content

Commit

Permalink
BLADERUNNER: Fix out-of-bounds write (CID 1364262)
Browse files Browse the repository at this point in the history
  • Loading branch information
madmoose committed Oct 24, 2016
1 parent e0a04a3 commit 8045eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/bladerunner/movement_track.cpp
Expand Up @@ -50,7 +50,7 @@ int MovementTrack::append(int waypointId, int delay, int running) {
}

int MovementTrack::append(int waypointId, int delay, int angle, int running) {
if (_lastIndex > ARRAYSIZE(_entries))
if (_lastIndex >= ARRAYSIZE(_entries))
return 0;

_entries[_lastIndex].waypointId = waypointId;
Expand Down

0 comments on commit 8045eda

Please sign in to comment.