Changeset 4614


Ignore:
Timestamp:
Oct 8, 2013 11:13:11 AM (11 years ago)
Author:
bennylp
Message:

Re #1703 General bug fixes: fixed wrong sizeof() in call to bzero(), memset(), or memcpy()

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/http_client.c

    r4613 r4614  
    656656    *remainder = size - 1 - i; 
    657657 
    658     pj_bzero(response, sizeof(response)); 
     658    pj_bzero(response, sizeof(*response)); 
    659659    response->content_length = -1; 
    660660 
  • pjproject/trunk/pjlib-util/src/pjlib-util/md5.c

    r1001 r4614  
    158158    byteReverse((unsigned char *) ctx->buf, 4); 
    159159    pj_memcpy(digest, ctx->buf, 16); 
    160     pj_bzero(ctx, sizeof(ctx)); /* In case it's sensitive */ 
     160    pj_bzero(ctx, sizeof(*ctx));        /* In case it's sensitive */ 
    161161} 
    162162 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r4544 r4614  
    13841384         */ 
    13851385        if (info->status != PJ_SUCCESS) 
    1386             pj_memcpy(&call->med_ch_info, info, sizeof(info)); 
     1386            pj_memcpy(&call->med_ch_info, info, sizeof(*info)); 
    13871387 
    13881388        /* Check whether all the call's medias have finished calling their 
Note: See TracChangeset for help on using the changeset viewer.