From:  Talk Back <talkback@netscape.com>
Date:  25 Sep 2003 10:30:11 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.crash-data
Subject:  

Got checks for null pointers/simple crash fixes?

NNTP-Posting-Host:  h-207-126-111-202-mozilla.sv.meer.net

Wed Sep 24 19:30:05 PDT 2003

Places to go looking for simple one line fixes to crashes
based on /u/talkback/Trunk/tempdata/newTrunkdata.all (Sep 24 - 03:26) 
----------

Number of lines or trigger functions to check :      266
Incidents per source file :  1583 
 115  mozilla/js/src/jsinterp.c
  67  mozilla/rdf/chrome/src/nsChromeRegistry.cpp
  46  mozilla/modules/libpref/src/nsPrefBranch.cpp
  41  mozilla/content/xul/content/src/nsXULElement.cpp
  28  mozilla/xpcom/glue/nsCOMPtr.cpp
  24  mozilla/js/src/jsobj.c
  20  mozilla/xpfe/components/download-manager/src/nsDownloadManager.cpp
  20  mozilla/layout/xul/base/src/tree/src/nsTreeBodyFrame.cpp
  18  mozilla/xpfe/components/bookmarks/src/nsBookmarksService.cpp
  18  mozilla/editor/libeditor/html/nsHTMLAnonymousUtils.cpp
  15  mozilla/js/src/jsgc.c
  13  mozilla/content/events/src/nsEventStateManager.cpp
  11  mozilla/netwerk/dns/src/nsHostResolver.cpp
  11  mozilla/layout/html/base/src/nsObjectFrame.cpp
  11  mozilla/js/src/jsscan.c
  11  mozilla/content/html/style/src/nsCSSStyleSheet.cpp
  10  mozilla/layout/html/base/src/nsBlockFrame.cpp
  10  mozilla/gfx/src/windows/nsImageWin.cpp
   9  mozilla/xpcom/ds/pldhash.c
   9  mozilla/view/src/nsViewManager.cpp
   9  mozilla/js/src/jsapi.c
   9  mozilla/content/base/src/nsFrameLoader.cpp
   8  mozilla/xpcom/string/obsolete/nsStr.h
   8  mozilla/mailnews/base/util/nsUInt32Array.cpp
   7  mozilla/netwerk/base/src/nsStandardURL.cpp
   7  mozilla/layout/xul/base/src/nsMenuPopupFrame.cpp
   7  mozilla/layout/html/base/src/nsLineBox.cpp
   7  mozilla/js/src/jsdbgapi.c
   6  mozilla/xpcom/glue/nsWeakReference.cpp
   6  mozilla/mailnews/imap/src/nsImapProtocol.cpp
   6  mozilla/mailnews/base/src/nsMsgDBView.cpp
   6  mozilla/content/xml/document/src/nsXMLContentSink.cpp
   5  mozilla/netwerk/base/src/nsSimpleURI.cpp
   5  mozilla/layout/html/base/src/nsHTMLReflowState.cpp
   5  mozilla/js/src/jshash.c
   5  mozilla/js/jsd/jsd_xpc.cpp
   5  mozilla/jpeg/jdcoefct.c
   5  mozilla/content/base/src/nsStyleContext.cpp
   4 ../../../../dist/include/content/nsINodeInfo.h
   4  mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp
   4  mozilla/mailnews/base/util/nsMsgIncomingServer.cpp
   4  mozilla/js/src/xpconnect/src/nsXPConnect.cpp
   4  mozilla/js/src/jsopcode.c
   4  mozilla/dom/src/base/nsDOMClassInfo.cpp
   4  mozilla/content/xul/document/src/nsXULDocument.cpp
   4  mozilla/content/html/document/src/nsHTMLContentSink.cpp
   4  mozilla/content/events/src/nsDOMEvent.cpp
   4  mozilla/content/base/src/nsRuleNode.cpp
   3 ../../../../dist/include/content/nsCSSPropList.h
   3  mozilla/xpcom/threads/nsTimerImpl.h
   3  mozilla/security/manager/ssl/src/nsCertTree.cpp
   3  mozilla/rdf/base/src/nsInMemoryDataSource.cpp
   3  mozilla/netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
   3  mozilla/netwerk/cache/src/nsCacheService.cpp
   3  mozilla/mailnews/news/src/nsNNTPProtocol.cpp
   3  mozilla/layout/html/forms/src/nsTextControlFrame.cpp
   3  mozilla/layout/html/base/src/nsPresShell.cpp
   3  mozilla/layout/html/base/src/nsLineLayout.cpp
   3  mozilla/layout/html/base/src/nsFrame.cpp
   3  mozilla/layout/base/src/nsPresContext.cpp
   3  mozilla/js/src/jsscript.c
   3  mozilla/js/src/jsarena.c
   3  mozilla/intl/uconv/src/nsUnicodeDecodeHelper.cpp
   3  mozilla/htmlparser/src/nsElementTable.cpp
   3  mozilla/content/events/src/nsEventListenerManager.cpp
   2 /builds/nightly/seamonkey/trunk/mozilla/widget/src/mac/../../../dist/include/xpcom/nsCOMPtr.h
   2 /builds/nightly/seamonkey/trunk/mozilla/view/src/nsViewManager.cpp
   2 /builds/nightly/seamonkey/trunk/mozilla/rdf/chrome/src/nsChromeRegistry.cpp
   2 /builds/nightly/seamonkey/trunk/mozilla/content/xul/content/src/nsXULElement.cpp
   2 ../../dist/include/string/nsAString.h
   2 ../../../../dist/include/string/nsBufferHandle.h
   2  mozilla/xpcom/ds/nsSupportsArray.cpp
   2  mozilla/widget/src/windows/nsWindow.cpp
   2  mozilla/view/src/nsView.cpp
   2  mozilla/security/nss/lib/certdb/genname.c
   2  mozilla/nsprpub/pr/src/threads/prmon.c
   2  mozilla/nsprpub/pr/src/md/windows/ntmisc.c
   2  mozilla/netwerk/protocol/ftp/src/nsFtpControlConnection.cpp
   2  mozilla/mailnews/local/src/nsLocalMailFolder.cpp
   2  mozilla/mailnews/base/src/nsMsgCopyService.cpp
   2  mozilla/layout/xul/base/src/tree/src/nsTreeColFrame.cpp
   2  mozilla/layout/xul/base/src/nsBox.cpp
   2  mozilla/layout/html/style/src/nsCSSRendering.cpp
   2  mozilla/js/src/xpconnect/src/xpcinlines.h
   2  mozilla/js/src/jsstr.c
   2  mozilla/js/src/jsscope.c
   2  mozilla/js/src/jsemit.c
   2  mozilla/js/src/jsatom.c
   2  mozilla/gfx/src/windows/nsRenderingContextWin.cpp
   2  mozilla/extensions/typeaheadfind/src/nsTypeAheadFind.cpp
   2  mozilla/extensions/cookie/nsPermissionManager.cpp
   2  mozilla/dom/src/base/nsGlobalWindow.cpp
   2  mozilla/content/html/style/src/nsInspectorCSSUtils.cpp
   2  mozilla/content/html/content/src/nsHTMLTextAreaElement.cpp
   2  mozilla/content/base/src/nsPrintEngine.cpp
   2  mozilla/content/base/src/nsNodeInfoManager.cpp
   2  mozilla/caps/src/nsScriptSecurityManager.cpp
   1 /builds/nightly/seamonkey/trunk/mozilla/xpcom/threads/plevent.c
   1 /builds/nightly/seamonkey/trunk/mozilla/xpcom/glue/nsCOMPtr.h
   1 /builds/nightly/seamonkey/trunk/mozilla/xpcom/ds/nsHashtable.cpp
   1 /builds/nightly/seamonkey/trunk/mozilla/widget/src/mac/../../../dist/include/string/nsString2.h
   1 /builds/nightly/seamonkey/trunk/mozilla/mailnews/local/src/nsPop3Protocol.cpp
   1 /builds/nightly/seamonkey/trunk/mozilla/mailnews/base/util/nsUInt32Array.cpp
   1 /builds/nightly/seamonkey/trunk/mozilla/layout/html/base/src/nsGfxScrollFrame.cpp
   1 /builds/nightly/seamonkey/trunk/mozilla/js/src/xpconnect/src/xpcprivate.h
   1 /builds/nightly/seamonkey/trunk/mozilla/js/src/jsscope.c
   1 /builds/nightly/seamonkey/trunk/mozilla/js/src/jshash.c
   1 /builds/nightly/seamonkey/trunk/mozilla/htmlparser/src/nsScanner.cpp
   1 /builds/nightly/seamonkey/trunk/mozilla/content/xul/templates/src/../../../../dist/include/xpcom/nsCOMPtr.h
   1 /builds/nightly/seamonkey/trunk/mozilla/content/html/style/src/nsHTMLStyleSheet.cpp
   1 /builds/nightly/seamonkey/trunk/mozilla/content/base/src/../../../dist/include/xpcom/nsCOMPtr.h
   1 ../../../dist/include/content/nsStyleStructList.h
   1  mozilla/xpcom/threads/nsTimerImpl.cpp
   1  mozilla/xpcom/threads/TimerThread.cpp
   1  mozilla/xpcom/string/src/nsAString.cpp
   1  mozilla/xpcom/string/obsolete/nsString2.cpp
   1  mozilla/xpcom/io/nsSegmentedBuffer.cpp
   1  mozilla/xpcom/io/nsInputStreamTee.cpp
   1  mozilla/xpcom/ds/nsHashtable.cpp
   1  mozilla/view/src/nsScrollPortView.cpp
   1  mozilla/uriloader/base/nsDocLoader.cpp
   1  mozilla/security/manager/ssl/src/nsNSSShutDown.cpp
   1  mozilla/rdf/util/src/nsRDFResource.cpp
   1  mozilla/rdf/base/src/nsRDFContentSink.cpp
   1  mozilla/rdf/base/src/nsRDFContainer.cpp
   1  mozilla/nsprpub/pr/src/misc/prnetdb.c
   1  mozilla/nsprpub/pr/src/io/priometh.c
   1  mozilla/netwerk/protocol/http/src/nsHttpTransaction.cpp
   1  mozilla/netwerk/base/src/nsBufferedStreams.cpp
   1  mozilla/modules/libpr0n/decoders/gif/imgContainerGIF.cpp
   1  mozilla/mailnews/imap/src/nsImapMailFolder.cpp
   1  mozilla/mailnews/extensions/smime/src/nsSMimeJSHelper.cpp
   1  mozilla/mailnews/base/src/nsMessengerWinIntegration.cpp
   1  mozilla/mailnews/addrbook/src/nsAddrDatabase.cpp
   1  mozilla/mailnews/addrbook/src/nsAbView.cpp
   1  mozilla/layout/xul/base/src/tree/src/nsTreeSelection.cpp
   1  mozilla/layout/xul/base/src/tree/src/nsTreeBodyFrame.h
   1  mozilla/layout/xul/base/src/nsStackLayout.cpp
   1  mozilla/layout/xul/base/src/nsPopupSetFrame.cpp
   1  mozilla/layout/html/table/src/nsTableCellFrame.cpp
   1  mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp
   1  mozilla/layout/html/base/src/nsImageFrame.cpp
   1  mozilla/layout/html/base/src/nsFrameManager.cpp
   1  mozilla/layout/html/base/src/nsContainerFrame.cpp
   1  mozilla/layout/base/src/nsFrameList.cpp
   1  mozilla/layout/base/src/nsCaret.cpp
   1  mozilla/js/src/xpconnect/src/xpcwrappedjs.cpp
   1  mozilla/js/src/xpconnect/src/xpcthreadcontext.cpp
   1  mozilla/js/src/jsprf.c
   1  mozilla/js/src/jsparse.c
   1  mozilla/js/src/jsnum.c
   1  mozilla/js/src/jsfun.c
   1  mozilla/js/src/jsdhash.c
   1  mozilla/js/jsd/jsd_atom.c
   1  mozilla/htmlparser/src/nsDTDUtils.cpp
   1  mozilla/htmlparser/src/CNavDTD.cpp
   1  mozilla/gfx/src/windows/nsRegionWin.cpp
   1  mozilla/gfx/src/windows/nsDeviceContextWin.cpp
   1  mozilla/gfx/src/shared/nsRenderingContextImpl.cpp
   1  mozilla/extensions/xmlextras/base/src/nsXMLHttpRequest.cpp
   1  mozilla/extensions/wallet/src/singsign.cpp
   1  mozilla/editor/txmgr/src/nsTransactionManager.cpp
   1  mozilla/editor/libeditor/html/nsHTMLObjectResizer.cpp
   1  mozilla/editor/libeditor/base/nsEditor.cpp
   1  mozilla/dist/public/nss/nssck.api
   1  mozilla/db/mork/src/morkRowMap.cpp
   1  mozilla/db/mork/src/morkDeque.cpp
   1  mozilla/content/xbl/src/nsXBLProtoImpl.cpp
   1  mozilla/content/xbl/src/nsXBLBinding.cpp
   1  mozilla/content/shared/src/nsStyleStruct.cpp
   1  mozilla/content/html/style/src/nsHTMLAttributes.h
   1  mozilla/content/html/style/src/nsHTMLAttributes.cpp
   1  mozilla/content/html/document/src/nsHTMLDocument.cpp
   1  mozilla/content/base/src/nsStyleSet.cpp
   1  mozilla/content/base/src/nsNodeInfo.cpp
   1  mozilla/content/base/src/nsGenericElement.cpp
   1  mozilla/content/base/src/nsContentUtils.cpp
   1  int

http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/caps/src/nsScriptSecurityManager.cpp&lineno=1822 triggerfunction=nsScriptSecurityManager::GetScriptPrincipal 495bec2a  no.crashes=1 
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/caps/src/nsScriptSecurityManager.cpp&lineno=1822 triggerfunction=nsScriptSecurityManager::GetScriptPrincipal c825b451  no.crashes=1 
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/content/base/src/nsContentUtils.cpp&lineno=322 triggerfunction=CopyNormalizeNewlines