Bug #3432: Segmentation fault when using base64_encode on broken strings

From: Date: Tue, 08 Feb 2000 17:28:58 +0000
Subject: Bug #3432: Segmentation fault when using base64_encode on broken strings
Groups: php.dev 
Request: Send a blank email to php-dev+get-15312@lists.php.net to get a copy of this message
From: chr@tv2i.dk Operating system: Redhat Linux 6.1 PHP version: 3.0.12 PHP Bug Type: Reproduceable crash Bug description: Segmentation fault when using base64_encode on broken strings The following code produces a segmentation fault (11). Independantly the two lines act properly, but together they produce the segmentation fault. <? echo base64_decode('a3A'); echo base64_decode('MTBiZXQ'); ?> The strings are base64_encoded strings with the terminating = removed (hence they are not true base64-encoded strings). The error has been reproduced on 3.0.12 as well as on 3.0.5.

« previous php.dev (#15312) next »