Closed Bug 97533 Opened 23 years ago Closed 23 years ago

UMRs in InitGlobals

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.4

People

(Reporter: dbaron, Assigned: bstell)

Details

(Whiteboard: PDT, r and sr'd, waiting for approval)

Attachments

(1 file)

There are a bunch of UMRs (uninitialized memory reads) in InitGlobals in
nsFontMetricsGTK.cpp.  I'll attach a patch that does what I think you meant to
do, but you'll have to check that it really is what you meant.

This should be a high priority to fix since UMRs can result in random behavior,
particularly with newer compilers and at higher optimization levels.
Hum... How did I, the reviewer, and the super-reviewer miss these?

The patch looks good.

r=bstell@netscape.com
Status: NEW → ASSIGNED
One thing to note: 

The uninitialized status value may cause the program to incorrectly choose
the fallback, the default, or the user pref setting.

In any case, the values are being set to an initialized (not random) value.

I think we should try to land this on m9.4
please ask sr and a= 
Target Milestone: --- → mozilla0.9.4
Mhhh... it looks that this was fixed in Xlib-toolkit. Should I file a bug to
port other improvements from Xlib-toolkit back to GTK+ toolkit ?
>Mhhh... it looks that this was fixed in Xlib-toolkit. Should I file a bug to
>port other improvements from Xlib-toolkit back to GTK+ toolkit ?
hum???? this is a mozila bug. 

ok, this is not ramdon, then move it to m0.9.5 
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Binary randomness is still randomness, and still very bad.
Comment on attachment 47571 [details] [diff] [review]
proposed patch

sr=blizzard
Attachment #47571 - Flags: superreview+
Attachment #47571 - Flags: review+
bstell said it is radomly pick between the default and user preference. I think
it is still bad enough to ask for a 9.4 check in. move to m0.9.4
Target Milestone: mozilla0.9.5 → mozilla0.9.4
Keywords: nsbranch, nsbranch+
If this makes it into 0.9.4, we'll take it for nsbranch.
checked into trunk
Whiteboard: PDT
Whiteboard: PDT → PDT, r and sr'd, waiting for approval
Comment on attachment 47571 [details] [diff] [review]
proposed patch

a=asa on behalf of drivers for checkin to 0.9.4 branch
Attachment #47571 - Flags: approval+
checked in 0.9.4 branch
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Blocks: 99171
No longer blocks: 99171
Not sure how QA can verify this. Marking verified per last comments in the Sept
25th branch build.
Keywords: vtrunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: