Bug 19083 - RenderText::trimmedPrefWidths potentially does not initialize all parameters
Summary: RenderText::trimmedPrefWidths potentially does not initialize all parameters
Status: RESOLVED DUPLICATE of bug 13864
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other All
: P2 Normal
Assignee: Ariya Hidayat
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-15 12:10 PDT by Ariya Hidayat
Modified: 2008-05-15 12:14 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***