Ignore:
Timestamp:
Aug 10, 2008, 3:15:51 PM (13 years ago)
Author:
charles
Message:

(1.3x) #1168: reading past the end of KTorrent's pex added.f strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3x/libtransmission/bencode.c

    r6425 r6469  
    469469    return found;
    470470}
     471
     472int
     473tr_bencDictFindRaw( tr_benc         * dict,
     474                    const char      * key,
     475                    const uint8_t  ** setme_raw,
     476                    size_t          * setme_len )
     477{
     478    int found = FALSE;
     479    tr_benc * child = tr_bencDictFindType( dict, key, TYPE_STR );
     480    if( child ) {
     481        *setme_raw = (uint8_t*) child->val.s.s;
     482        *setme_len = child->val.s.i;
     483        found = TRUE;
     484    }
     485    return found;
     486}
     487
    471488
    472489/***
Note: See TracChangeset for help on using the changeset viewer.