Bug 105221

Summary: Butterfly::growArrayRight shouldn't be called on null Butterfly objects
Product: WebKit Reporter: Mark Hahnenberg <mhahnenberg>
Component: JavaScriptCoreAssignee: Mark Hahnenberg <mhahnenberg>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-ews
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Mark Hahnenberg
Reported 2012-12-17 15:26:20 PST
Currently we depend upon the fact that Butterfly::growArrayRight works with null Butterfly objects purely by coincidence. We should add a new static function that null checks the old Butterfly object and creates a new one if it's null, or calls growArrayRight if it isn't for use in the couple of places in JSObject that expect such behavior to work.
Attachments
Patch (4.60 KB, patch)
2012-12-17 16:00 PST, Mark Hahnenberg
no flags
Patch (4.58 KB, patch)
2012-12-17 16:53 PST, Mark Hahnenberg
no flags
Mark Hahnenberg
Comment 1 2012-12-17 16:00:29 PST
Early Warning System Bot
Comment 2 2012-12-17 16:07:25 PST
Early Warning System Bot
Comment 3 2012-12-17 16:08:12 PST
Mark Hahnenberg
Comment 4 2012-12-17 16:53:23 PST
Mark Hahnenberg
Comment 5 2012-12-17 17:04:57 PST
Note You need to log in before you can comment on or make changes to this bug.