Changeset 5221


Ignore:
Timestamp:
Dec 30, 2015 3:44:12 AM (5 years ago)
Author:
ming
Message:

Re #1882 (misc): Fixed potential out-of-bound array access in ice_session.

Thanks to Dusan Klinec for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/ice_session.c

    r5184 r5221  
    16621662            pj_ice_sess_cand *lcand = &ice->lcand[i]; 
    16631663            pj_ice_sess_cand *rcand = &ice->rcand[j]; 
    1664             pj_ice_sess_check *chk = &clist->checks[clist->count]; 
     1664            pj_ice_sess_check *chk = NULL; 
    16651665 
    16661666            if (clist->count >= PJ_ICE_MAX_CHECKS) { 
     
    16681668                return PJ_ETOOMANY; 
    16691669            }  
     1670 
     1671           chk = &clist->checks[clist->count]; 
    16701672 
    16711673            /* A local candidate is paired with a remote candidate if 
Note: See TracChangeset for help on using the changeset viewer.