infinite loop in nsStr::FindSubstr

VERIFIED FIXED

Status

()

Core
HTML: Parser
P3
critical
VERIFIED FIXED
19 years ago
19 years ago

People

(Reporter: buster, Assigned: rickg)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

19 years ago
infinite loop in parser calling nsStr::FindSubstr opening url.

stack:
nsStr::FindSubstr() line 449
nsString::Find() line 1143 + 43 bytes
DetermineParseMode() line 442 + 16 bytes
nsParser::WillBuildModel() line 477 + 9 bytes
nsParser::ResumeParse() line 779 + 27 bytes
nsParser::OnDataAvailable() line 1004 + 17 bytes
nsDocumentBindInfo::OnDataAvailable() line 1498 + 24 bytes
OnDataAvailableProxyEvent::HandleEvent() line 633
StreamListenerProxyEvent::HandlePLEvent() line 472 + 12 bytes
PL_HandleEvent() line 491 + 10 bytes
PL_ProcessPendingEvents() line 452 + 9 bytes
_md_EventReceiverProc() line 868 + 9 bytes


locals:
	matches	0
	theSubIndex	2
	theNewStartPos	192
	theFirstTargetChar	78
	theTargetMax	8
	theLastTargetChar	83
-	aDest	{...}
	mLength	300
	mCapacity	512
	mCharSize	eTwoByte
	mOwnsBuffer	1
+	mStr	0x0154d028 "<"
+	mUStr	0x0154d028
-	aTarget	{...}
	mLength	8
	mCapacity	0
	mCharSize	eOneByte
	mOwnsBuffer	0
+	mStr	0x005ba29c "NOQUIRKS"
+	mUStr	0x005ba29c
	aIgnoreCase	0
	anOffset	0
	index	192
	theMax	292
(Assignee)

Updated

19 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 1

19 years ago
Thanks Steve: I owe you a beer!
(Assignee)

Updated

19 years ago
Status: ASSIGNED → NEW
(Assignee)

Comment 2

19 years ago
So the real value of porn is to help us debug, is that right?
(This is fixed in my tree, and will get checkin in soon enough)
(Assignee)

Updated

19 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 3

19 years ago
This is fixed in my tree, and I'll check it in shortly.
(Assignee)

Updated

19 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → FIXED
(Assignee)

Comment 4

19 years ago
Fixed by change to bufferroutines.h

Updated

19 years ago
Status: RESOLVED → VERIFIED

Comment 5

19 years ago
Verified 1999-06-15-16-M7
You need to log in before you can comment on or make changes to this bug.