提交 8615e2c8 编写于 作者: G Grissiom

kernel/timer: change row_lvl to unsigned

Use signed int as array index is unsecure.
上级 a4bb77d0
......@@ -293,7 +293,7 @@ RTM_EXPORT(rt_timer_delete);
*/
rt_err_t rt_timer_start(rt_timer_t timer)
{
int row_lvl;
unsigned int row_lvl;
rt_list_t *timer_list;
register rt_base_t level;
rt_list_t *row_head[RT_TIMER_SKIP_LIST_LEVEL];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册