Revision 0d20c3fd

View differences:

libavutil/base64.c
79 79
    int bytes_remaining = len;
80 80

  
81 81
    if (len >= UINT_MAX / 4 ||
82
        buf_len < len * 4 / 3 + 12)
82
        buf_len < (len+2) / 3 * 4 + 1)
83 83
        return NULL;
84 84
    ret = dst = buf;
85 85
    while (bytes_remaining) {

Also available in: Unified diff