Closed Bug 249737 Opened 20 years ago Closed 20 years ago

nsCommandLineService::GetProgName should copy string

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bryner, Assigned: bryner)

Details

Attachments

(1 file)

nsICmdLineService has:

readonly attribute string progName;

which means you would pass getter_Copies() with an nsXPIDLCString to it. 
However, it doesn't actually copy, so doing that results in stomping on the
command line service's data.
Attached patch patchSplinter Review
Attachment #152265 - Flags: superreview?(jst)
Attachment #152265 - Flags: review?(jst)
Attachment #152265 - Flags: superreview?(jst)
Attachment #152265 - Flags: superreview+
Attachment #152265 - Flags: review?(jst)
Attachment #152265 - Flags: review+
checked in.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Core → Mozilla Application Suite
bsmedberg wiped this out when he forked an old version of this file into
toolkit.  I just relanded into toolkit, after spending about 4 hours debugging.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: