Skip to content

Commit

Permalink
Merge pull request #1 from joshzimmerman/patch-1
Browse files Browse the repository at this point in the history
Fixed possible overflow error for large arrays in binary search.
  • Loading branch information
duiker101 committed Sep 30, 2011
2 parents b5ede32 + 4da4895 commit 12f6c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ int groups_search(const struct group_info *group_info, gid_t grp)

while (left < right) {

unsigned int mid = (left+right)/2;
unsigned int mid = left + (right - left)/2;

if (grp > GROUP_AT(group_info, mid))

Expand Down

0 comments on commit 12f6c6b

Please sign in to comment.