Heap-use-after-free in nsHTMLCSSUtils::CreateCSSPropertyTxn
Originally disclosed on Mozilla
- Fixed in 5 days
- Paid in 5 months
- Disclosed after 5 days
Created attachment 655254 Testcase
Reproduces on trunk
================================================================= ==5528== ERROR: AddressSanitizer heap-use-after-free on address 0x7fdf641dce80 at pc 0x7fdf86465da5 bp 0x7fffd539e810 sp 0x7fffd539e808 READ of size 8 at 0x7fdf641dce80 thread T0 #0 0x7fdf86465da4 in nsHTMLCSSUtils::CreateCSSPropertyTxn(nsIDOMElement*, nsIAtom*, nsAString_internal const&, ChangeCSSInlineStyleTxn**, bool) src/editor/libeditor/html/nsHTMLCSSUtils.cpp:569 #1 0x7fdf86464c29 in nsHTMLCSSUtils::SetCSSProperty(nsIDOMElement*, nsIAtom*, nsAString_internal const&, bool) src/editor/libeditor/html/nsHTMLCSSUtils.cpp:512 #2 0x7fdf86472196 in nsHTMLCSSUtils::SetCSSEquivalentToHTMLStyle(nsIDOMNode*, nsIAtom*, nsAString_internal const*, nsAString_internal const*, int*, bool) src/editor/libeditor/html/nsHTMLCSSUtils.cpp:1012 #3 0x7fdf86514947 in nsHTMLEditor::SetAttributeOrEquivalent(nsIDOMElement*, nsAString_internal const&, nsAString_internal const&, bool) src/editor/libeditor/html/nsHTMLEditor.cpp:4560 #4 0x7fdf8667ae27 in nsHTMLEditRules::AlignBlock(nsIDOMElement*, nsAString_internal const*, bool) src/editor/libeditor/html/nsHTMLEditRules.cpp:8465 #5 0x7fdf865e7340 in nsHTMLEditRules::WillAlign(mozilla::Selection*, nsAString_internal const*, bool*, bool*) src/editor/libeditor/html/nsHTMLEditRules.cpp:4547 #6 0x7fdf865a58c0 in nsHTMLEditRules::WillDoAction(mozilla::Selection*, nsRulesInfo*, bool*, bool*) src/editor/libeditor/html/nsHTMLEditRules.cpp:609 #7 0x7fdf864d22c0 in nsHTMLEditor::Align(nsAString_internal const&) src/editor/libeditor/html/nsHTMLEditor.cpp:2258 #8 0x7fdf864d2a1e in non-virtual thunk to nsHTMLEditor::Align(nsAString_internal const&) src/build/unix/stdc++compat/stdc++compat.cpp:0 #9 0x7fdf89ac6c05 in nsAlignCommand::SetState(nsIEditor*, nsString&) src/editor/composer/src/nsComposerCommands.cpp:971 #10 0x7fdf89ababe4 in nsMultiStateCommand::DoCommandParams(char const*, nsICommandParams*, nsISupports*) src/editor/composer/src/nsComposerCommands.cpp:600 #11 0x7fdf89324c61 in nsControllerCommandTable::DoCommandParams(char const*, nsICommandParams*, nsISupports*) src/embedding/components/commandhandler/src/nsControllerCommandTable.cpp:175 #12 0x7fdf892f7ef2 in nsBaseCommandController::DoCommandWithParams(char const*, nsICommandParams*) src/embedding/components/commandhandler/src/nsBaseCommandController.cpp:153 #13 0x7fdf892f81c6 in non-virtual thunk to nsBaseCommandController::DoCommandWithParams(char const*, nsICommandParams*) src/build/unix/stdc++compat/stdc++compat.cpp:0 #14 0x7fdf8930e81f in nsCommandManager::DoCommand(char const*, nsICommandParams*, nsIDOMWindow*) src/embedding/components/commandhandler/src/nsCommandManager.cpp:234 #15 0x7fdf84891e08 in nsHTMLDocument::ExecCommand(nsAString_internal const&, bool, nsAString_internal const&, bool*) src/content/html/document/src/nsHTMLDocument.cpp:3232 #16 0x7fdf8489375d in non-virtual thunk to nsHTMLDocument::ExecCommand(nsAString_internal const&, bool, nsAString_internal const&, bool*) src/build/unix/stdc++compat/stdc++compat.cpp:0 #17 0x7fdf8c8db397 in NS_InvokeByIndex_P src/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_unix.cpp:162 #18 0x7fdf87ea770e in CallMethodHelper::Invoke() src/js/xpconnect/src/XPCWrappedNative.cpp:3117 #19 0x7fdf87f0a3a5 in XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) src/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:1480 #20 0x7fdf93436b91 in js::CallJSNative(JSContext*, int ()(JSContext, unsigned int, JS::Value*), JS::CallArgs const&) src/js/src/jscntxtinlines.h:389 #21 0x7fdf933c3ab0 in js::Interpret(JSContext*, js::StackFrame*, js::InterpMode) src/js/src/jsinterp.cpp:2413 #22 0x7fdf9332aa35 in js::RunScript(JSContext*, JSScript*, js::StackFrame*) src/js/src/jsinterp.cpp:309 #23 0x7fdf93443ea6 in js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JSObject&, JS::Value const&, js::ExecuteType, js::StackFrame*, JS::Value*) src/js/src/jsinterp.cpp:494 #24 0x7fdf93445e5e in js::Execute(JSContext*, JS::Handle<JSScript*>, JSObject&, JS::Value*) src/js/src/jsinterp.cpp:531 #25 0x7fdf92ba0d94 in JS::Evaluate(JSContext*, JS::Handle<JSObject*>, JS::CompileOptions, unsigned short const*, unsigned long, JS::Value*) src/js/src/jsapi.cpp:5723 #26 0x7fdf92ba5d31 in JS_EvaluateUCScriptForPrincipalsVersionOrigin src/js/src/jsapi.cpp:5804 #27 0x7fdf8502aadf in nsJSContext::EvaluateString(nsAString_internal const&, JSObject*, nsIPrincipal*, nsIPrincipal*, char const*, unsigned int, JSVersion, nsAString_internal*, bool*) src/dom/base/nsJSEnvironment.cpp:1506 #28 0x7fdf851daf7f in nsGlobalWindow::RunTimeoutHandler(nsTimeout*, nsIScriptContext*) src/dom/base/nsGlobalWindow.cpp:9609 #29 0x7fdf851928f9 in nsGlobalWindow::RunTimeout(nsTimeout*) src/dom/base/nsGlobalWindow.cpp:9870 #30 0x7fdf851d8fda in nsGlobalWindow::TimerCallback(nsITimer*, void*) src/dom/base/nsGlobalWindow.cpp:10137 #31 0x7fdf8c81b902 in nsTimerImpl::Fire() src/xpcom/threads/nsTimerImpl.cpp:473 #32 0x7fdf8c81d1b8 in nsTimerEvent::Run() src/xpcom/threads/nsTimerImpl.cpp:556 #33 0x7fdf8c7e05ae in nsThread::ProcessNextEvent(bool, bool*) src/xpcom/threads/nsThread.cpp:624 #34 0x7fdf8c4819c7 in NS_ProcessNextEvent_P(nsIThread*, bool) src/objdir-ff-asan-sym/xpcom/build/nsThreadUtils.cpp:220 #35 0x7fdf8940c459 in nsXULWindow::ShowModal() src/xpfe/appshell/src/nsXULWindow.cpp:379 #36 0x7fdf893ef880 in nsContentTreeOwner::ShowAsModal() src/xpfe/appshell/src/nsContentTreeOwner.cpp:529 #37 0x7fdf893ef9db in non-virtual thunk to nsContentTreeOwner::ShowAsModal() src/build/unix/stdc++compat/stdc++compat.cpp:0 #38 0x7fdf892220b0 in nsWindowWatcher::OpenWindowInternal(nsIDOMWindow*, char const*, char const*, char const*, bool, bool, bool, nsIArray*, nsIDOMWindow**) src/embedding/components/windowwatcher/src/nsWindowWatcher.cpp:1033 #39 0x7fdf89215fc0 in nsWindowWatcher::OpenWindow(nsIDOMWindow*, char const*, char const*, char const*, nsISupports*, nsIDOMWindow**) src/embedding/components/windowwatcher/src/nsWindowWatcher.cpp:399 #40 0x7fdf8c8db397 in NS_InvokeByIndex_P src/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_unix.cpp:162 #41 0x7fdf87ea770e in CallMethodHelper::Invoke() src/js/xpconnect/src/XPCWrappedNative.cpp:3117 #42 0x7fdf87f0a3a5 in XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) src/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:1480 #43 0x7fdf93436b91 in js::CallJSNative(JSContext*, int ()(JSContext, unsigned int, JS::Value*), JS::CallArgs const&) src/js/src/jscntxtinlines.h:389 #44 0x7fdf933c3ab0 in js::Interpret(JSContext*, js::StackFrame*, js::InterpMode) src/js/src/jsinterp.cpp:2413 #45 0x7fdf9332aa35 in js::RunScript(JSContext*, JSScript*, js::StackFrame*) src/js/src/jsinterp.cpp:309 #46 0x7fdf93437205 in js::InvokeKernel(JSContext*, JS::CallArgs, js::MaybeConstruct) src/js/src/jsinterp.cpp:363 #47 0x7fdf92cd1ffc in js::Invoke(JSContext*, js::InvokeArgsGuard&, js::MaybeConstruct) src/js/src/jsinterp.h:119 #48 0x7fdf9343c54b in js::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value*, JS::Value*) src/js/src/jsinterp.cpp:396 #49 0x7fdf92badd7b in JS_CallFunctionValue src/js/src/jsapi.cpp:5904 #50 0x7fdf87e563a2 in nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJS*, unsigned short, XPTMethodDescriptor const*, nsXPTCMiniVariant*) src/js/xpconnect/src/XPCWrappedJSClass.cpp:1436 #51 0x7fdf87dfad06 in nsXPCWrappedJS::CallMethod(unsigned short, XPTMethodDescriptor const*, nsXPTCMiniVariant*) src/js/xpconnect/src/XPCWrappedJS.cpp:580 #52 0x7fdf8c8e0e56 in PrepareAndDispatch src/xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp:121 #53 0x7fdf8c8de126 in SharedStub src/xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp:0 #54 0x7fdf8c8db397 in NS_InvokeByIndex_P src/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_unix.cpp:162 #55 0x7fdf87ea770e in CallMethodHelper::Invoke() src/js/xpconnect/src/XPCWrappedNative.cpp:3117 #56 0x7fdf87f0a3a5 in XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) src/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:1480 #57 0x7fdf93436b91 in js::CallJSNative(JSContext*, int ()(JSContext, unsigned int, JS::Value*), JS::CallArgs const&) src/js/src/jscntxtinlines.h:389 #58 0x7fdf933c3ab0 in js::Interpret(JSContext*, js::StackFrame*, js::InterpMode) src/js/src/jsinterp.cpp:2413 #59 0x7fdf9332aa35 in js::RunScript(JSContext*, JSScript*, js::StackFrame*) src/js/src/jsinterp.cpp:309 #60 0x7fdf93437205 in js::InvokeKernel(JSContext*, JS::CallArgs, js::MaybeConstruct) src/js/src/jsinterp.cpp:363 #61 0x7fdf92cd1ffc in js::Invoke(JSContext*, js::InvokeArgsGuard&, js::MaybeConstruct) src/js/src/jsinterp.h:119 #62 0x7fdf930e0690 in js::CallOrConstructBoundFunction(JSContext*, unsigned int, JS::Value*) src/js/src/jsfun.cpp:1029 #63 0x7fdf93436b92 in js::CallJSNative(JSContext*, int ()(JSContext, unsigned int, JS::Value*), JS::CallArgs const&) src/js/src/jscntxtinlines.h:389 0x7fdf641dce80 is located 0 bytes inside of 16-byte region [0x7fdf641dce80,0x7fdf641dce90) freed by thread T0 here: #0 0x4c3d80 in free ??:0 #1 0x7fdf99a75572 in moz_free src/memory/mozalloc/mozalloc.cpp:51 #2 0x7fdf86539480 in operator delete(void*) src/../../../dist/include/mozilla/mozalloc.h:224 #3 0x7fdf86491dc7 in nsAutoPtr<nsHTMLCSSUtils>::operator=(nsHTMLCSSUtils*) src/../../../dist/include/nsAutoPtr.h:101 #4 0x7fdf8649058c in nsHTMLEditor::Init(nsIDOMDocument*, nsIContent*, nsISelectionController*, unsigned int) src/editor/libeditor/html/nsHTMLEditor.cpp:249 #5 0x7fdf89b04aae in nsEditingSession::SetupEditorOnWindow(nsIDOMWindow*) src/editor/composer/src/nsEditingSession.cpp:460 #6 0x7fdf89afa507 in nsEditingSession::MakeWindowEditable(nsIDOMWindow*, char const*, bool, bool, bool) src/editor/composer/src/nsEditingSession.cpp:173 #7 0x7fdf84861d10 in nsHTMLDocument::EditingStateChanged() src/content/html/document/src/nsHTMLDocument.cpp:2693 #8 0x7fdf8485f249 in nsHTMLDocument::BeginLoad() src/content/html/document/src/nsHTMLDocument.cpp:880 #9 0x7fdf862fcfe2 in nsHtml5TreeOpExecutor::WillBuildModel(nsDTDMode) src/parser/html/nsHtml5TreeOpExecutor.cpp:116 #10 0x7fdf860ef40b in nsHtml5Parser::Parse(nsAString_internal const&, void*, nsACString_internal const&, bool, nsDTDMode) src/parser/html/nsHtml5Parser.cpp:231 #11 0x7fdf8487780f in nsHTMLDocument::Close() src/content/html/document/src/nsHTMLDocument.cpp:1606 #12 0x7fdf84877bdb in non-virtual thunk to nsHTMLDocument::Close() src/build/unix/stdc++compat/stdc++compat.cpp:0 #13 0x7fdf8c8db397 in NS_InvokeByIndex_P src/xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_unix.cpp:162 #14 0x7fdf87ea770e in CallMethodHelper::Invoke() src/js/xpconnect/src/XPCWrappedNative.cpp:3117 #15 0x7fdf87f0a3a5 in XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) src/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:1480 #16 0x7fdf93436b91 in js::CallJSNative(JSContext*, int ()(JSContext, unsigned int, JS::Value*), JS::CallArgs const&) src/js/src/jscntxtinlines.h:389 #17 0x7fdf92cd1ffc in js::Invoke(JSContext*, js::InvokeArgsGuard&, js::MaybeConstruct) src/js/src/jsinterp.h:119 #18 0x7fdf9343c54b in js::Invoke(JSContext*, JS::Value const&, JS::Value const&, unsigned int, JS::Value*, JS::Value*) src/js/src/jsinterp.cpp:396 #19 0x7fdf938b0f9c in js::IndirectProxyHandler::call(JSContext*, JSObject*, unsigned int, JS::Value*) src/js/src/jsproxy.cpp:477 #20 0x7fdf94071a40 in js::DirectWrapper::call(JSContext*, JSObject*, unsigned int, JS::Value*) src/js/src/jswrapper.cpp:318 #21 0x7fdf9408672d in js::CrossCompartmentWrapper::call(JSContext*, JSObject*, unsigned int, JS::Value*) src/js/src/jswrapper.cpp:731 #22 0x7fdf94086d54 in non-virtual thunk to js::CrossCompartmentWrapper::call(JSContext*, JSObject*, unsigned int, JS::Value*) ??:0 #23 0x7fdf938f5977 in js::Proxy::call(JSContext*, JSObject*, unsigned int, JS::Value*) src/js/src/jsproxy.cpp:1320 #24 0x7fdf9391020c in proxy_Call(JSContext*, unsigned int, JS::Value*) src/js/src/jsproxy.cpp:1856 #25 0x7fdf9343650d in js::CallJSNative(JSContext*, int ()(JSContext, unsigned int, JS::Value*), JS::CallArgs const&) src/js/src/jscntxtinlines.h:389 #26 0x7fdf933c3ab0 in js::Interpret(JSContext*, js::StackFrame*, js::InterpMode) src/js/src/jsinterp.cpp:2413 #27 0x7fdf9332aa35 in js::RunScript(JSContext*, JSScript*, js::StackFrame*) src/js/src/jsinterp.cpp:309 #28 0x7fdf93437205 in js::InvokeKernel(JSContext*, JS::CallArgs, js::MaybeConstruct) src/js/src/jsinterp.cpp:363 #29 0x7fdf92cd1ffd in js::Invoke(JSContext*, js::InvokeArgsGuard&, js::MaybeConstruct) src/js/src/jsinterp.h:119 previously allocated by thread T0 here: #0 0x4c3e40 in __interceptor_malloc ??:0 #1 0x7fdf99a756c6 in moz_xmalloc src/memory/mozalloc/mozalloc.cpp:57 #2 0x7fdf8649055f in operator new(unsigned long) src/../../../dist/include/mozilla/mozalloc.h:200 #3 0x7fdf89b04aae in nsEditingSession::SetupEditorOnWindow(nsIDOMWindow*) src/editor/composer/src/nsEditingSession.cpp:460 #4 0x7fdf89afa507 in nsEditingSession::MakeWindowEditable(nsIDOMWindow*, char const*, bool, bool, bool) src/editor/composer/src/nsEditingSession.cpp:173 #5 0x7fdf84861d10 in nsHTMLDocument::EditingStateChanged() src/content/html/document/src/nsHTMLDocument.cpp:2693 #6 0x7fdf8488dc6c in nsHTMLDocument::SetDesignMode(nsAString_internal const&) src/content/html/document/src/nsHTMLDocument.cpp:2834 #7 0x7fdf88721cde in nsIDOMHTMLDocument_SetDesignMode(JSContext*, JS::Handle<JSObject*>, JS::Handle<long>, int, JS::MutableHandleJS::Value) src/objdir-ff-asan-sym/js/xpconnect/src/dom_quickstubs.cpp:13862 #8 0x7fdf936b2903 in js::CallJSPropertyOpSetter(JSContext*, int ()(JSContext, JS::Handle<JSObject*>, JS::Handle<long>, int, JS::MutableHandleJS::Value), JS::Handle<JSObject*>, JS::Handle<long>, int, JS::MutableHandleJS::Value) src/js/src/jscntxtinlines.h:469 #9 0x7fdf936e7e34 in js::baseops::SetPropertyHelper(JSContext*, JS::Handle<JSObject*>, JS::Handle<JSObject*>, JS::Handle<long>, unsigned int, JS::MutableHandleJS::Value, int) src/js/src/jsobj.cpp:4853 #10 0x7fdf9347beb5 in js::SetPropertyOperation(JSContext*, unsigned char*, JS::HandleJS::Value, JS::HandleJS::Value) src/js/src/jsinterpinlines.h:345 #11 0x7fdf933b6700 in js::Interpret(JSContext*, js::StackFrame*, js::InterpMode) src/js/src/jsinterp.cpp:2323 #12 0x7fdf9332aa35 in js::RunScript(JSContext*, JSScript*, js::StackFrame*) src/js/src/jsinterp.cpp:309 #13 0x7fdf93443ea6 in js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JSObject&, JS::Value const&, js::ExecuteType, js::StackFrame*, JS::Value*) src/js/src/jsinterp.cpp:494 #14 0x7fdf93445e5e in js::Execute(JSContext*, JS::Handle<JSScript*>, JSObject&, JS::Value*) src/js/src/jsinterp.cpp:531 #15 0x7fdf92ba0d94 in JS::Evaluate(JSContext*, JS::Handle<JSObject*>, JS::CompileOptions, unsigned short const*, unsigned long, JS::Value*) src/js/src/jsapi.cpp:5723 #16 0x7fdf92ba5d31 in JS_EvaluateUCScriptForPrincipalsVersionOrigin src/js/src/jsapi.cpp:5804 #17 0x7fdf8502aadf in nsJSContext::EvaluateString(nsAString_internal const&, JSObject*, nsIPrincipal*, nsIPrincipal*, char const*, unsigned int, JSVersion, nsAString_internal*, bool*) src/dom/base/nsJSEnvironment.cpp:1506 #18 0x7fdf851daf7f in nsGlobalWindow::RunTimeoutHandler(nsTimeout*, nsIScriptContext*) src/dom/base/nsGlobalWindow.cpp:9609 #19 0x7fdf851928f9 in nsGlobalWindow::RunTimeout(nsTimeout*) src/dom/base/nsGlobalWindow.cpp:9870 #20 0x7fdf851d8fda in nsGlobalWindow::TimerCallback(nsITimer*, void*) src/dom/base/nsGlobalWindow.cpp:10137 #21 0x7fdf8c81b902 in nsTimerImpl::Fire() src/xpcom/threads/nsTimerImpl.cpp:473 #22 0x7fdf8c81d1b8 in nsTimerEvent::Run() src/xpcom/threads/nsTimerImpl.cpp:556 #23 0x7fdf8c7e05ae in nsThread::ProcessNextEvent(bool, bool*) src/xpcom/threads/nsThread.cpp:624 #24 0x7fdf8c4819c8 in NS_ProcessNextEvent_P(nsIThread*, bool) src/objdir-ff-asan-sym/xpcom/build/nsThreadUtils.cpp:220 Shadow byte and word: 0x1ffbec83b9d0: fd 0x1ffbec83b9d0: fd fd fd fd fd fd fd fd More shadow bytes: 0x1ffbec83b9b0: 00 00 00 fb fb fb fb fb 0x1ffbec83b9b8: fb fb fb fb fb fb fb fb 0x1ffbec83b9c0: fa fa fa fa fa fa fa fa 0x1ffbec83b9c8: fa fa fa fa fa fa fa fa =>0x1ffbec83b9d0: fd fd fd fd fd fd fd fd 0x1ffbec83b9d8: fd fd fd fd fd fd fd fd 0x1ffbec83b9e0: fa fa fa fa fa fa fa fa 0x1ffbec83b9e8: fa fa fa fa fa fa fa fa 0x1ffbec83b9f0: 02 fb fb fb fb fb fb fb Stats: 235M malloced (268M for red zones) by 475854 calls Stats: 41M realloced by 21216 calls Stats: 202M freed by 245094 calls Stats: 69M really freed by 155750 calls Stats: 440M (112717 full pages) mmaped in 110 calls mmaps by size class: 8:278511; 9:40955; 10:16380; 11:14329; 12:3072; 13:1536; 14:1280; 15:256; 16:448; 17:1248; 18:144; 19:40; 20:16; mallocs by size class: 8:385323; 9:48551; 10:16749; 11:16755; 12:2604; 13:1970; 14:1504; 15:316; 16:520; 17:1336; 18:168; 19:42; 20:16; frees by size class: 8:172072; 9:39112; 10:13415; 11:13609; 12:1698; 13:1660; 14:1305; 15:271; 16:462; 17:1323; 18:115; 19:39; 20:13; rfrees by size class: 8:116704; 9:19801; 10:7916; 11:9035; 12:580; 13:511; 14:395; 15:147; 16:339; 17:288; 18:28; 19:5; 20:1; Stats: malloc large: 1562 small slow: 2104 ==5528== ABORTING
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A critical-severity memory corruption bug in DOM: Editor. Mozilla made it public on 30 August 2012 as CVE-2012-4179.
About Memory corruption
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.