Closed Bug 297973 Opened 19 years ago Closed 19 years ago

It's possible to allocate a nsAString in the Gecko SDK

Categories

(Core :: XPCOM, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.8beta3

People

(Reporter: darin.moz, Assigned: darin.moz)

Details

Attachments

(1 file)

It's possible to allocate a nsAString in the Gecko SDK.  We should make it so
that "nsAString foo;" does not compile.  Writing code like that results in the
nsAString not being initialized properly, and attempting to use it will result
in a crash.  This only applies to the Gecko SDK (i.e., the version of nsAString
defined in nsStringAPI.h).
Attached patch v1 patchSplinter Review
Attachment #186538 - Flags: superreview?(dbaron)
Attachment #186538 - Flags: review?(bryner)
I want to backport this fix to the 1.7 branch as well since people generally use
the SDK from the 1.7 branch in order to support Firefox 1.0 and 1.1.
Severity: normal → minor
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.8beta3
Attachment #186538 - Flags: superreview?(dbaron) → superreview+
Attachment #186538 - Flags: review?(bryner) → review+
Attachment #186538 - Flags: approval1.8b3?
Attachment #186538 - Flags: approval1.7.9?
Attachment #186538 - Flags: approval1.8b3? → approval1.8b3+
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment on attachment 186538 [details] [diff] [review]
v1 patch

unsetting 1.7.9 approval request since that release has already shipped.
Attachment #186538 - Flags: approval1.7.9?
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: