Bug 19083

Summary: RenderText::trimmedPrefWidths potentially does not initialize all parameters
Product: WebKit Reporter: Ariya Hidayat <ariya.hidayat>
Component: Layout and RenderingAssignee: Ariya Hidayat <ariya.hidayat>
Status: RESOLVED DUPLICATE    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: All   

Description Ariya Hidayat 2008-05-15 12:10:18 PDT
In the function RenderText::trimmedPrefWidths(), some parameters are not initialized properly if the function returns prematurely, see the first 'return' there. 

When this function is called from RenderBlock::calcInlinePrefWidths, the uninitialized variables (which are passed to trimmedPrefWidths) are then used for conditional.
Comment 1 Ariya Hidayat 2008-05-15 12:14:53 PDT

*** This bug has been marked as a duplicate of 13864 ***