Changeset 1628


Ignore:
Timestamp:
Dec 12, 2007 2:09:14 PM (12 years ago)
Author:
bennylp
Message:

Fixed bug in Symbian TInetAddr to pj_sockaddr conversion: memory overflow in bzero() when pj_sockaddr_in is passed as argument

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_symbian.h

    r1608 r1628  
    242242                                      int *addr_len) 
    243243    { 
    244         pj_bzero(&pj_addr, sizeof(pj_sockaddr)); 
     244        pj_bzero(&pj_addr, *addr_len); 
    245245        pj_addr.addr.sa_family = (pj_uint16_t)sym_addr.Family(); 
    246246        if (pj_addr.addr.sa_family == PJ_AF_INET) { 
Note: See TracChangeset for help on using the changeset viewer.