Closed Bug 252289 Opened 20 years ago Closed 20 years ago

M18a2 topcrash in safefileoutputstream [@ nsSafeFileOutputStream::Init]

Categories

(Core :: Networking: File, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: mvl, Assigned: dwitte)

Details

(Keywords: crash, fixed-aviary1.0, topcrash)

Crash Data

Attachments

(1 file, 2 obsolete files)

Severity: normal → critical
Attached patch nullcheck file (obsolete) — Splinter Review
check in the stream init, to make it consistent with nsFileOutputStream.
Attached patch nullcheck mCookieFile too (obsolete) — Splinter Review
cookies is called without a profile at startup, in seamonkey anyway (not sure
about fx). we initialize it for some silly thing before the profile manager
comes up. i can't remember why, but i hate it. i don't know why we haven't seen
this crash ourselves.
Assignee: darin → dwitte
Status: NEW → ASSIGNED
Attachment #153828 - Flags: superreview?(darin)
Attachment #153828 - Flags: review?(mvl)
Attachment #153829 - Flags: superreview?(darin)
Attachment #153829 - Flags: review?(mvl)
Comment on attachment 153828 [details] [diff] [review]
nullcheck file

>-        NS_ENSURE_STATE(mTargetFile);
Hmm, maybe you should leave that check there. It never hurts to be sure. A bad
consumer can call Finish() even when Init() failed.

Other checks is good. r=mvl
Attachment #153828 - Flags: review?(mvl) → review+
Comment on attachment 153829 [details] [diff] [review]
nullcheck mCookieFile too

>+  NS_ENSURE_ARG(mCookieFile);
NS_ENSURE_STATE might be more appropiate. It isn't an arg.
Also, if you know that it will warn on startup because cookies start when there
is no profile, is it worth warning?
you're right, it's not. i'll make it an |if| check instead.
please post one final patch for this bug, thanks!
Comment on attachment 153828 [details] [diff] [review]
nullcheck file

i agree with mvl, keep the NS_ENSURE_STATE(mTargetFile)

shouldn't mTargetFileExists be initialized in the ctor?
Attachment #153828 - Flags: superreview?(darin) → superreview-
Comment on attachment 153829 [details] [diff] [review]
nullcheck mCookieFile too

minus in favor of NS_ENSURE_STATE as suggested by mvl.
Attachment #153829 - Flags: superreview?(darin) → superreview-
Adding topcrash info for tracking, this is a topcrasher with Mozilla 1.8 alpha2.
Keywords: topcrash
Summary: topcrash in safefileoutputstream [@ nsSafeFileOutputStream::Init] → M18a2 topcrash in safefileoutputstream [@ nsSafeFileOutputStream::Init]
Attachment #153829 - Flags: review?(mvl)
Attached patch here we goSplinter Review
Attachment #153828 - Attachment is obsolete: true
Attachment #153829 - Attachment is obsolete: true
Attachment #153931 - Flags: superreview?(darin)
Comment on attachment 153931 [details] [diff] [review]
here we go

sr=darin
Attachment #153931 - Flags: superreview?(darin) → superreview+
Attachment #153931 - Flags: review?(mvl)
Attachment #153931 - Flags: review?(mvl) → review+
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: needed-aviary1.0
Keywords: fixed-aviary1.0
Whiteboard: needed-aviary1.0
V/fixed, per lxr.
Status: RESOLVED → VERIFIED
Crash Signature: [@ nsSafeFileOutputStream::Init]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: