Ignore:
Timestamp:
Aug 8, 2008 7:03:21 AM (11 years ago)
Author:
nanang
Message:

Fixed bug possibility of dereferencing NULL pointer when calling pjmedia_jbuf_get_frame() (thanks Joel Dodson)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/jbuf.c

    r2039 r2197  
    593593            *p_frame_type = PJMEDIA_JB_ZERO_PREFETCH_FRAME; 
    594594 
    595         *size = 0; 
     595        if (size) 
     596            *size = 0; 
    596597 
    597598        return; 
     
    607608        pj_bzero(frame, jb->jb_frame_size); 
    608609        *p_frame_type = PJMEDIA_JB_ZERO_EMPTY_FRAME; 
    609         *size = 0; 
     610        if (size) 
     611            *size = 0; 
    610612 
    611613        return; 
Note: See TracChangeset for help on using the changeset viewer.