Changeset ee170e1245a31fcff11eda421428fb8af45ced9b

Show
Ignore:
Timestamp:
02/12/07 00:41:47 (11 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1196552507 +0000
git-parent:

[6d96102abf3f7ee6b569ea339017fc279dd107c0]

git-author:
Rafaël Carré <funman@videolan.org> 1196552507 +0000
Message:

vlc_b64_decode_binary_to_buffer(): i_dst is the size of the destination buffer, not the source buffer

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/text/strings.c

    rf173b63 ree170e1  
    556556    int i_last; 
    557557 
    558     for( i_level = 0, i_last = 0; i_dst > 0 && *p != '\0'; i_dst--, p++ ) 
     558    for( i_level = 0, i_last = 0; (size_t)( p_dst - p_start ) < i_dst && *p != '\0'; p++ ) 
    559559    { 
    560560        const int c = b64[(unsigned int)*p];