mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-12 19:19:15 +00:00
Bug 352132 [@ CNavDTD::HandleSavedTokens] possibly null mSink is dereferenced
r=mrbkap sr=bz
This commit is contained in:
parent
c22fa76581
commit
7e9a4d2ccc
@ -1702,7 +1702,7 @@ CNavDTD::HandleSavedTokens(PRInt32 anIndex)
|
|||||||
|
|
||||||
nsresult result = NS_OK;
|
nsresult result = NS_OK;
|
||||||
|
|
||||||
if (anIndex > kNotFound) {
|
if (mSink && (anIndex > kNotFound)) {
|
||||||
PRInt32 theBadTokenCount = mMisplacedContent.GetSize();
|
PRInt32 theBadTokenCount = mMisplacedContent.GetSize();
|
||||||
|
|
||||||
if (theBadTokenCount > 0) {
|
if (theBadTokenCount > 0) {
|
||||||
@ -1718,7 +1718,7 @@ CNavDTD::HandleSavedTokens(PRInt32 anIndex)
|
|||||||
PRInt32 theTopIndex = anIndex + 1;
|
PRInt32 theTopIndex = anIndex + 1;
|
||||||
PRInt32 theTagCount = mBodyContext->GetCount();
|
PRInt32 theTagCount = mBodyContext->GetCount();
|
||||||
|
|
||||||
if (mSink && mSink->IsFormOnStack()) {
|
if (mSink->IsFormOnStack()) {
|
||||||
// Do this to synchronize dtd stack and the sink stack.
|
// Do this to synchronize dtd stack and the sink stack.
|
||||||
// Note: FORM is never on the dtd stack because its always
|
// Note: FORM is never on the dtd stack because its always
|
||||||
// considered as a leaf. However, in the sink FORM can either
|
// considered as a leaf. However, in the sink FORM can either
|
||||||
|
Loading…
x
Reference in New Issue
Block a user