Bug 102573

Summary: JSObject::copyButterfly doesn't handle undecided indexing types correctly
Product: WebKit Reporter: Mark Hahnenberg <mhahnenberg>
Component: JavaScriptCoreAssignee: Mark Hahnenberg <mhahnenberg>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Mark Hahnenberg
Reported 2012-11-16 17:26:46 PST
We don't do any copying into the newly allocated vector and we don't zero-initialize CopiedBlocks during the copying phase, so we end up with uninitialized memory in arrays which have undecided indexing types. We should just do the actual memcpy from the old block to the new one. We should also assert that all of the elements are empty in vectors with undecided indexing type.
Attachments
Patch (1.79 KB, patch)
2012-11-16 17:56 PST, Mark Hahnenberg
no flags
Mark Hahnenberg
Comment 1 2012-11-16 17:56:48 PST
WebKit Review Bot
Comment 2 2012-11-26 13:00:55 PST
Comment on attachment 174790 [details] Patch Clearing flags on attachment: 174790 Committed r135756: <http://trac.webkit.org/changeset/135756>
WebKit Review Bot
Comment 3 2012-11-26 13:00:59 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.