fix segfault it t-scan test 77/57277/1 sandbox/dongkyun.s/tizen tizen accepted/tizen/base/20160120.080601 submit/tizen/20160120.064108 submit/tizen_base/20160120.080211
authorYury Usishchev <y.usishchev@samsung.com>
Mon, 16 Nov 2015 16:00:54 +0000 (19:00 +0300)
committerDongkyun, Son <dongkyun.s@samsung.com>
Mon, 18 Jan 2016 13:36:31 +0000 (22:36 +0900)
Change-Id: I4bd1247e6b1ca13a0180f0cf5c94a5464c0e17d5

tests/mpz/t-scan.c

index 8e67fc7a369ac40b39765b4faa36434a6075b219..fb1c858c85162e1ae7c70a055c063d8748c0ef18 100644 (file)
@@ -81,7 +81,7 @@ check_ref (void)
 
               for (isize = 0; isize <= size; isize++)
                 {
-                  for (oindex = 0; oindex <= numberof (offset); oindex++)
+                  for (oindex = 0; oindex < numberof (offset); oindex++)
                     {
                       o = offset[oindex];
                       if ((int) isize*GMP_NUMB_BITS < -o)