Closed Bug 256757 Opened 20 years ago Closed 20 years ago

misused printf causes crash [@ nsXPCWrappedJSClass::CheckForException]

Categories

(Core :: XPConnect, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: jruderman)

Details

(Keywords: crash, fixed-aviary1.0, fixed1.7.5)

Crash Data

Attachments

(1 file, 1 obsolete file)

This line in nsXPCWrappedJSClass::CheckForException crashes when my extension 
causes an error:

printf(text);

because text contains "C:\Documents%20and%20Settings\...".
Attachment #156914 - Flags: review?(jst)
Comment on attachment 156914 [details] [diff] [review]
patch: replace printf(...) with fputs(..., stderr)

r+sr=jst, but why make this go to stderr now when it used to go to stdout? I'd
say s/stderr/stdout/ in the diff unless there are good reasons not to.
Attachment #156914 - Flags: superreview+
Attachment #156914 - Flags: review?(jst)
Attachment #156914 - Flags: review+
Attachment #156914 - Attachment is obsolete: true
Checked in on trunk.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Version: 1.7 Branch → Trunk
Since this was a safe crash/security fix, I got a=tor and checked in on 1.7.x
and aviary.
Crash Signature: [@ nsXPCWrappedJSClass::CheckForException]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: