Test change to trigger a crash when trying to construct a table frame so we can test the new talos stack tooling, but should compile
authorBoris Zbarsky <bzbarsky@mit.edu>
Thu, 12 Mar 2009 15:47:18 -0400
changeset 26109 4d9bc12c4d3c32e6fdf73128c16ce62cb04d9df7
parent 26108 7252af11301d40c628bc3a09cdae031bca224bfc
child 26110 0d041a4ba02b277b5b0960035123f51f7ffda59e
push id5907
push userbzbarsky@mozilla.com
push dateThu, 12 Mar 2009 19:47:30 +0000
treeherdermozilla-central@4d9bc12c4d3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.2a1pre
Test change to trigger a crash when trying to construct a table frame so we can test the new talos stack tooling, but should compile
layout/base/nsCSSFrameConstructor.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -3134,17 +3134,17 @@ nsCSSFrameConstructor::ConstructTableFra
                                            nsIFrame*                aContentParent,
                                            nsStyleContext*          aStyleContext,
                                            PRInt32                  aNameSpaceID,
                                            PRBool                   aIsPseudo,
                                            nsFrameItems&            aChildItems,
                                            nsIFrame*&               aNewOuterFrame,
                                            nsIFrame*&               aNewInnerFrame)
 {
-  *((void*)0) = 1;
+  *((int*)0) = 1;
   nsresult rv = NS_OK;
 
 
   // create the pseudo SC for the outer table as a child of the inner SC
   nsRefPtr<nsStyleContext> outerStyleContext;
   outerStyleContext = mPresShell->StyleSet()->
     ResolvePseudoStyleFor(aContent, nsCSSAnonBoxes::tableOuter, aStyleContext);