ASSERT(!m_hasBadParent) in InlineBox::parent() should be ASSERT_WITH_SECURITY_IMPLICATION

https://bugs.webkit.org/show_bug.cgi?id=122032

Patch by Drew Yao <ayao@apple.com> on 2013-09-30
Reviewed by Andreas Kling.

Convert assertion to ASSERT_WITH_SECURITY_IMPLICATION to help catch use after free bugs.

No new tests needed.

* rendering/InlineBox.h:
(WebCore::InlineBox::parent):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 18b1da9f
2013-09-30 Drew Yao <ayao@apple.com>
ASSERT(!m_hasBadParent) in InlineBox::parent() should be ASSERT_WITH_SECURITY_IMPLICATION
https://bugs.webkit.org/show_bug.cgi?id=122032
Reviewed by Andreas Kling.
Convert assertion to ASSERT_WITH_SECURITY_IMPLICATION to help catch use after free bugs.
No new tests needed.
* rendering/InlineBox.h:
(WebCore::InlineBox::parent):
2013-09-30 Yongjun Zhang <yongjun_zhang@apple.com>
Don't attempt to destroy decoded frame if a BitmapImage doesn't have encoded raw data.
......@@ -185,7 +185,7 @@ public:
InlineFlowBox* parent() const
{
ASSERT(!m_hasBadParent);
ASSERT_WITH_SECURITY_IMPLICATION(!m_hasBadParent);
return m_parent;
}
void setParent(InlineFlowBox* par) { m_parent = par; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment