|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-24 10:26 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 21:00:01 2025 UTC |
Description: ------------ ext/standard/base64.c contains a mapping array called base64_reverse_table that has 256 elements, but only 240 initializers. This means that input characters in the range 0xF0 to 0xFF map to 0 (because the compiler fills the remaining elements) instead of -1 and therefore are not ignored as they should be. Here's a diff for the trivial patch: *** base64.c.orig Tue Jun 24 11:01:32 2003 --- base64.c Tue Jun 24 11:02:26 2003 *************** *** 48,53 **** --- 48,54 ---- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 }; /* }}} */