]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix infinite loop in sector recycling introduced by r15054
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 1 Apr 2015 18:15:42 +0000 (18:15 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 1 Apr 2015 18:15:42 +0000 (18:15 +0000)
(a regression test that will exercise sector recycling will follow)

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15058

coregrind/m_transtab.c

index 8292cce753f6ff70a02e224a00d96c9eb3def7e1..0f6807eb9e53472d4176077b124252b7aa928fe5 100644 (file)
@@ -1545,7 +1545,7 @@ static void initialiseSector ( SECno sno )
                                       sno);
 
       /* Free up the eclass structures. */
-      for (EClassNo e = 0; e < ECLASS_N; i++) {
+      for (EClassNo e = 0; e < ECLASS_N; e++) {
          if (sec->ec2tte_size[e] == 0) {
             vg_assert(sec->ec2tte_used[e] == 0);
             vg_assert(sec->ec2tte[e] == NULL);