Closed Bug 14737 Opened 20 years ago Closed 20 years ago

Use of uninitialized pointer in nsCSSFrameConstructor.cpp

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: colin, Assigned: troy)

References

Details

In layout/html/style/src/nsCSSFrameConstructor.cpp is the following
code fragment:

        nsIFrame*               captionFrame;
        nsFrameItems            childItems;
        nsFrameConstructorState state(aPresContext, mFixedContainingBlock,
                                      GetAbsoluteContainingBlock(aPresContext,
newFrame),
                                      captionFrame);
        NS_NewTableCaptionFrame(&captionFrame);

Notice the pointer captionFrame is used before it is given a value.
This must be wrong!

Colin.
Assignee: troy → karnaze
Chris, this looks table related
Assignee: karnaze → troy
Troy, based on cvs blame, you affected the 1st 3 lines below and Kipp the last
one. I'm not very familar with nsCSSFrameConstructorState.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Marking as verified fix in the Sept 27th build.
Marking as verified fix in the Sept 27th build.
Blocks: 59652
You need to log in before you can comment on or make changes to this bug.