Changeset 50d26f3 for lib


Ignore:
Timestamp:
2008-03-16T15:28:37Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
4e8db1c
Parents:
e960a52
Message:

Fixed base64_decode() to not barf on corrupted Base64 strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/base64.c

    re960a52 r50d26f3  
    118118        int i, outlen = 0;
    119119       
    120         for( i = 0; in[i]; i += 4 )
     120        for( i = 0; in[i] && in[i+1] && in[i+2] && in[i+3]; i += 4 )
    121121        {
    122122                int sx;
Note: See TracChangeset for help on using the changeset viewer.