Closed Bug 110335 Opened 23 years ago Closed 19 years ago

ReplaceSubstring can go on forever

Categories

(Core :: XPCOM, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: rods, Assigned: jag+mozilla)

References

Details

For example:

nsString str("&T");
nsString s1("&T");
nsString s2("QB&T);

str.ReplaceSubstring(s1, s2);

This will go on until it runs out of memory.
Blocks: 110284
Note: Remember to remove the workaround added in bug 110284 when this is fixed.
giving up ancient string bugs to the new string owner.  jag, you'll want to sort
through these and see which ones still apply and go with or against the
direction in which you intend strings evolve
Assignee: scc → jaggernaut
Darin, am I correct in thinking you fixed this issue in bug 235355?
No comment from Darin, but I am sure enough of my ground to mark this FIXED. See
bug 235355 comment 6 and the last change in
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&file=nsTStringObsolete.cpp&branch=&root=/cvsroot&subdir=mozilla/xpcom/string/src&command=DIFF_FRAMESET&rev1=1.2&rev2=1.3

I filed bug 292300 on removing the workaround from bug 110284.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.