Bug #1596: base64_decode violates rfc2045

From: Date: Thu, 24 Jun 1999 16:16:43 +0000
Subject: Bug #1596: base64_decode violates rfc2045
Groups: php.dev 
Request: Send a blank email to php-dev+get-7531@lists.php.net to get a copy of this message
From: bfranklin@dct.com Operating system: Solaris 2.7 PHP version: 3.0.9 PHP Bug Type: Misbehaving function Bug description: base64_decode violates rfc2045 base64_decode doesn't properly ignore characters that aren't in base64_table. Here's a patch to fix the problem. --- base64.c.orig Sat Feb 27 10:11:08 1999 +++ base64.c Thu Jun 24 11:04:31 1999 @@ -97,10 +97,7 @@ while ((ch = *current++) != '\0') { if (ch == base64_pad) break; chp = strchr(base64_table, ch); - if (chp == NULL) { - efree(result); - return NULL; - } + if (chp == NULL) continue; ch = chp - base64_table; switch(i % 4) {

« previous php.dev (#7531) next »