|
Description
|
usr/src/uts/common/io/ib/ibtl/ibtl_util.c
0136: /* First, leap through the table by 4 entries at a time */
0137: for (i = 0; ibtl_ib2usec_tbl[i + 4] < time_val; i += 4)
0138: if (i == 60) /* Don't go beyond the end of table */
0139: break;
The loop will access ibtl_ib2usec_tbl[64] before breaking out at line 138. Instead, i < 60 should be included in the loop termination condition.
This bug was found using the Parfait source code analysis tool.
See http://research.sun.com/projects/parfait
|