[SRU] Crash on using unitialized vals and __get/__set

Bug #515740 reported by Pontiy_Pilat
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Fix Released
Low
Unassigned
Hardy
Won't Fix
Low
Unassigned
Karmic
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: php5

Reproduce code:
---------------
<?php
class Foo {
 function __get($k) {
  return null;
 }
 function __set($k, $v) {
  $this->$k = $v;
 }
}

$c = new Foo();

$c->arr[0]["k"] = 1;
$c->arr[0]["k2"] = $ref;
for($cnt=0;$cnt<6;$cnt++) {
 $ref = chop($undef);
 $c->arr[$cnt]["k2"] = $ref;
}
?>

http://bugs.php.net/bug.php?id=43201

Segmentation fault

Fixed in php 5.2.6

Related branches

Revision history for this message
Chuck Short (zulcss) wrote :

Which version of php are you using?

Regards
chuck

Changed in php5 (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Pontiy_Pilat (p-p) wrote :

Hardy LTS
5.2.4-2ubuntu5.10

Revision history for this message
Chuck Short (zulcss) wrote :

I am not able to reproduce this in lucid. This is probably a good candidate for an SRU though.

Regards
chuck

Changed in php5 (Ubuntu):
status: Incomplete → Fix Released
Mathias Gug (mathiaz)
Changed in php5 (Ubuntu Karmic):
status: New → Won't Fix
Changed in php5 (Ubuntu Hardy):
importance: Undecided → Wishlist
importance: Wishlist → Low
status: New → Confirmed
Revision history for this message
Chuck Short (zulcss) wrote :

Statement of Impact: PHP in hardy was shipped with a bug that if the user provides code modifying the result of __get (erroneously) and using undefined variables causes code to crash.

http://bugs.php.net/bug.php?id=43201

Addressed:

Fixed in php 5.2.12/5.3 I have backported the patch for hardy.

How to Reproduce: Run the code that was previously provided.

Regression potential: none.

summary: - Crash on using unitialized vals and __get/__set
+ [SRU] Crash on using unitialized vals and __get/__set
Revision history for this message
Martin Pitt (pitti) wrote :

I do not accept this update until bug 240519 gets verified. Since that one seems pretty much dead, it might be that we need to revert it, and reupload this fix without the 240519 change.

Revision history for this message
Jonathan Riddell (jr) wrote :

Rejecting upload in hardy-proposed as discussed on irc with zul

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Hardy has seen the end of its life and is no longer receiving any updates. Marking the Hardy task for this ticket as "Won't Fix".

Changed in php5 (Ubuntu Hardy):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.