eval() with base64_decode causes segfault
Bug #594696 reported by
Matthew Chambers
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: php5
Description: Ubuntu 10.04 LTS
Release: 10.04
php5:
Installed: (none)
Candidate: 5.3.2-1ubuntu4.2
Version table:
5.
500 http://
5.3.2-1ubuntu4 0
500 http://
<?php
//echo base64_
eval(
?>
Changed in php5 (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
To post a comment you must log in.
I should also say making the following change does not cause a segfault and the code works as expected.
<?php encode( 'printf( "output text");'); // Generates the string used below decode( 'cHJpbnRmKCJvdX RwdXQgdGV4dCIpO w==');
//echo base64_
$decoded = base64_
eval($decoded); // Should print 'output text', and it does!
?>