Skip to content

Commit

Permalink
debugger: re-order loop condition to avoid out of bounds access
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 2, 2016
1 parent c73a7ea commit ef4d771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/debugger/debugger_json.c
Expand Up @@ -93,7 +93,7 @@ int _dbg_xavp_dump_lookup(pv_param_t *param)

xname = (pv_xavp_name_t*)param->pvn.u.dname;

while(_dbg_xavp_dump[i]!=NULL&&i<DBG_XAVP_DUMP_SIZE)
while(i<DBG_XAVP_DUMP_SIZE && _dbg_xavp_dump[i]!=NULL)
{
if(_dbg_xavp_dump[i]->len==xname->name.len)
{
Expand Down

0 comments on commit ef4d771

Please sign in to comment.