Skip to content

Commit

Permalink
Merge pull request traviscross#46 from dhduvall/master
Browse files Browse the repository at this point in the history
Fix a potential buffer overrun from an off-by-one error.
  • Loading branch information
rewolff committed Jun 14, 2014
2 parents 9e14fed + 74159c6 commit bac3247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ void net_save_return(int at, int seq, int ms)
{
int idx;
idx = seq - host[at].saved_seq_offset;
if (idx < 0 || idx > SAVED_PINGS) {
if (idx < 0 || idx >= SAVED_PINGS) {
return;
}
host[at].saved[idx] = ms;
Expand Down

0 comments on commit bac3247

Please sign in to comment.