Bug 21225

Summary: Machine::retrieveLastCaller should check for a NULL codeBlock
Product: WebKit Reporter: Geoffrey Garen <ggaren>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: kmccullough
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   

Geoffrey Garen
Reported 2008-09-29 17:28:06 PDT
Machine::retrieveLastCaller reads a CodeBlock out of the register file without checking for NULL. Since CodeBlocks in the register file can be NULL, it should check. I thought you could crash this code through something like "console.log.call(console, 'hello world')", but that doesn't quite do it. Still, we should just be safe and check for NULL.
Attachments
Geoffrey Garen
Comment 1 2008-09-29 18:03:42 PDT
Committed revision 37087.
Note You need to log in before you can comment on or make changes to this bug.