Open Bug 1873569 Opened 8 months ago Updated 7 months ago

crash near null in [@ BuildTextRunsScanner::FindBoundaries]

Categories

(Core :: Disability Access APIs, defect, P2)

defect

Tracking

()

Tracking Status
firefox123 --- wontfix
firefox124 --- wontfix

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug)

Details

(4 keywords, Whiteboard: [bugmon:bisected,confirmed])

Attachments

(2 files)

Attached file testcase.html

Found while fuzzing m-c 20231117-45c9c8724cca (--enable-address-sanitizer --enable-fuzzing)

To reproduce via Grizzly Replay:

$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch -a  --fuzzing -n firefox
$ python -m grizzly.replay.bugzilla ./firefox/firefox <bugid>
==140893==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000006d (pc 0x7f5af463f353 bp 0x7fffc1003910 sp 0x7fffc1003800 T0)
==140893==The signal is caused by a READ memory access.
==140893==Hint: address points to the zero page.
    #0 0x7f5af463f353 in Type /builds/worker/checkouts/gecko/layout/generic/nsIFrame.h:3314:38
    #1 0x7f5af463f353 in BuildTextRunsScanner::FindBoundaries(nsIFrame*, BuildTextRunsScanner::FindBoundaryState*) /builds/worker/checkouts/gecko/layout/generic/nsTextFrame.cpp:1276:39
    #2 0x7f5af4653a1e in BuildTextRuns /builds/worker/checkouts/gecko/layout/generic/nsTextFrame.cpp:1502:19
    #3 0x7f5af4653a1e in nsTextFrame::EnsureTextRun(nsTextFrame::TextRunType, mozilla::gfx::DrawTarget*, nsIFrame*, nsLineList_iterator const*, unsigned int*) /builds/worker/checkouts/gecko/layout/generic/nsTextFrame.cpp:2997:7
    #4 0x7f5af4660e2f in nsTextFrame::GetRenderedText(unsigned int, unsigned int, nsIFrame::TextOffsetType, nsIFrame::TrailingWhitespace) /builds/worker/checkouts/gecko/layout/generic/nsTextFrame.cpp:10140:20
    #5 0x7f5af7837355 in nsTextEquivUtils::AppendTextEquivFromTextContent(nsIContent*, nsTSubstring<char16_t>*) /builds/worker/checkouts/gecko/accessible/base/nsTextEquivUtils.cpp:101:46
    #6 0x7f5af7836598 in nsTextEquivUtils::AppendFromAccessible(mozilla::a11y::Accessible*, nsTSubstring<char16_t>*) /builds/worker/checkouts/gecko/accessible/base/nsTextEquivUtils.cpp:158:19
    #7 0x7f5af783574f in AppendFromAccessibleChildren /builds/worker/checkouts/gecko/accessible/base/nsTextEquivUtils.cpp:145:10
    #8 0x7f5af783574f in nsTextEquivUtils::GetNameFromSubtree(mozilla::a11y::LocalAccessible const*, nsTSubstring<char16_t>&) /builds/worker/checkouts/gecko/accessible/base/nsTextEquivUtils.cpp:40:7
    #9 0x7f5af789976c in mozilla::a11y::LocalAccessible::NativeName(nsTString<char16_t>&) const /builds/worker/checkouts/gecko/accessible/generic/LocalAccessible.cpp:2491:5
    #10 0x7f5af78991a9 in mozilla::a11y::HyperTextAccessible::NativeName(nsTString<char16_t>&) const /builds/worker/checkouts/gecko/accessible/generic/HyperTextAccessible.cpp:1015:45
    #11 0x7f5af7860842 in mozilla::a11y::LocalAccessible::Name(nsTString<char16_t>&) const /builds/worker/checkouts/gecko/accessible/generic/LocalAccessible.cpp:129:29
    #12 0x7f5af77be8cc in mozilla::a11y::EventQueue::PushNameOrDescriptionChange(mozilla::a11y::AccEvent*) /builds/worker/checkouts/gecko/accessible/base/EventQueue.cpp:84:43
    #13 0x7f5af77c381e in mozilla::a11y::NotificationController::QueueMutationEvent(mozilla::a11y::AccTreeMutationEvent*) /builds/worker/checkouts/gecko/accessible/base/NotificationController.cpp:218:9
    #14 0x7f5af77c4db6 in mozilla::a11y::TreeMutation::BeforeRemoval(mozilla::a11y::LocalAccessible*, bool) /builds/worker/checkouts/gecko/accessible/base/EventTree.cpp:67:21
    #15 0x7f5af78735d9 in mozilla::a11y::DocAccessible::ContentRemoved(mozilla::a11y::LocalAccessible*) /builds/worker/checkouts/gecko/accessible/generic/DocAccessible.cpp:2150:6
    #16 0x7f5af7869b80 in mozilla::a11y::DocAccessible::ContentRemoved(nsIContent*) /builds/worker/checkouts/gecko/accessible/generic/DocAccessible.cpp:2183:5
    #17 0x7f5af7873af1 in mozilla::a11y::DocAccessible::RecreateAccessible(nsIContent*) /builds/worker/checkouts/gecko/accessible/generic/DocAccessible.cpp:1438:3
    #18 0x7f5af4531af3 in nsImageFrame::Destroy(mozilla::FrameDestroyContext&) /builds/worker/checkouts/gecko/layout/generic/nsImageFrame.cpp:500:3
    #19 0x7f5af430fcd2 in nsBlockFrame::RemoveFrame(mozilla::FrameDestroyContext&, mozilla::FrameChildListID, nsIFrame*) /builds/worker/checkouts/gecko/layout/generic/nsBlockFrame.cpp:6088:5
    #20 0x7f5af4616dea in nsPlaceholderFrame::Destroy(mozilla::FrameDestroyContext&) /builds/worker/checkouts/gecko/layout/generic/nsPlaceholderFrame.cpp:157:9
    #21 0x7f5af434ac9a in DestroyFrames /builds/worker/checkouts/gecko/layout/generic/nsFrameList.cpp:40:12
    #22 0x7f5af434ac9a in nsContainerFrame::Destroy(mozilla::FrameDestroyContext&) /builds/worker/checkouts/gecko/layout/generic/nsContainerFrame.cpp:230:11
    #23 0x7f5af45d4429 in nsInlineFrame::Destroy(mozilla::FrameDestroyContext&) /builds/worker/checkouts/gecko/layout/generic/nsInlineFrame.cpp:177:21
    #24 0x7f5af434ac9a in DestroyFrames /builds/worker/checkouts/gecko/layout/generic/nsFrameList.cpp:40:12
    #25 0x7f5af434ac9a in nsContainerFrame::Destroy(mozilla::FrameDestroyContext&) /builds/worker/checkouts/gecko/layout/generic/nsContainerFrame.cpp:230:11
    #26 0x7f5af45d4429 in nsInlineFrame::Destroy(mozilla::FrameDestroyContext&) /builds/worker/checkouts/gecko/layout/generic/nsInlineFrame.cpp:177:21
    #27 0x7f5af4310ab6 in nsBlockFrame::DoRemoveFrame(mozilla::FrameDestroyContext&, nsIFrame*, unsigned int) /builds/worker/checkouts/gecko/layout/generic/nsBlockFrame.cpp:6774:20
    #28 0x7f5af430fcf9 in nsBlockFrame::RemoveFrame(mozilla::FrameDestroyContext&, mozilla::FrameChildListID, nsIFrame*) /builds/worker/checkouts/gecko/layout/generic/nsBlockFrame.cpp:6072:5
    #29 0x7f5af415cbbb in RemoveFrame /builds/worker/checkouts/gecko/layout/base/nsFrameManager.cpp:121:18
    #30 0x7f5af415cbbb in nsCSSFrameConstructor::ContentRemoved(nsIContent*, nsIContent*, nsCSSFrameConstructor::RemoveFlags) /builds/worker/checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:7554:5
    #31 0x7f5af41531dc in nsCSSFrameConstructor::RecreateFramesForContent(nsIContent*, nsCSSFrameConstructor::InsertionKind) /builds/worker/checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:8544:7
    #32 0x7f5af415e8a0 in nsCSSFrameConstructor::MaybeRecreateContainerForFrameRemoval(nsIFrame*) /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h
    #33 0x7f5af4153183 in nsCSSFrameConstructor::RecreateFramesForContent(nsIContent*, nsCSSFrameConstructor::InsertionKind) /builds/worker/checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:8533:16
    #34 0x7f5af415e8a0 in nsCSSFrameConstructor::MaybeRecreateContainerForFrameRemoval(nsIFrame*) /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h
    #35 0x7f5af4153183 in nsCSSFrameConstructor::RecreateFramesForContent(nsIContent*, nsCSSFrameConstructor::InsertionKind) /builds/worker/checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:8533:16
    #36 0x7f5af415e8a0 in nsCSSFrameConstructor::MaybeRecreateContainerForFrameRemoval(nsIFrame*) /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h
    #37 0x7f5af415c4d1 in nsCSSFrameConstructor::ContentRemoved(nsIContent*, nsIContent*, nsCSSFrameConstructor::RemoveFlags) /builds/worker/checkouts/gecko/layout/base/nsCSSFrameConstructor.cpp:7450:9
    #38 0x7f5af4080e40 in mozilla::PresShell::ContentRemoved(nsIContent*, nsIContent*) /builds/worker/checkouts/gecko/layout/base/PresShell.cpp:4577:22
    #39 0x7f5aec39c740 in operator() /builds/worker/checkouts/gecko/dom/base/MutationObservers.cpp:188:19
    #40 0x7f5aec39c740 in Notify<(NotifyPresShell)1, (lambda at /builds/worker/checkouts/gecko/dom/base/MutationObservers.cpp:188:19)> /builds/worker/checkouts/gecko/dom/base/MutationObservers.cpp:91:7
    #41 0x7f5aec39c740 in mozilla::dom::MutationObservers::NotifyContentRemoved(nsINode*, nsIContent*, nsIContent*) /builds/worker/checkouts/gecko/dom/base/MutationObservers.cpp:187:3
    #42 0x7f5aec6632fe in nsINode::RemoveChildNode(nsIContent*, bool) /builds/worker/checkouts/gecko/dom/base/nsINode.cpp:2231:5
    #43 0x7f5aec6662f4 in nsINode::ReplaceOrInsertBefore(bool, nsINode*, nsINode*, mozilla::ErrorResult&) /builds/worker/checkouts/gecko/dom/base/nsINode.cpp:2601:18
    #44 0x7f5aec65f22f in InsertBefore /builds/worker/checkouts/gecko/dom/base/nsINode.h:2154:12
    #45 0x7f5aec65f22f in nsINode::Before(mozilla::dom::Sequence<mozilla::dom::OwningNodeOrString> const&, mozilla::ErrorResult&) /builds/worker/checkouts/gecko/dom/base/nsINode.cpp:1990:11
    #46 0x7f5aee395cf5 in mozilla::dom::Element_Binding::before(JSContext*, JS::Handle<JSObject*>, void*, JSJitMethodCallArgs const&) /builds/worker/workspace/obj-build/dom/bindings/./ElementBinding.cpp:9259:24
    #47 0x7f5aee8f0e34 in bool mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ThrowExceptions>(JSContext*, unsigned int, JS::Value*) /builds/worker/checkouts/gecko/dom/bindings/BindingUtils.cpp:3258:13
    #48 0x7f5af8c0f8f5 in CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:479:13
    #49 0x7f5af8c0f8f5 in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:573:12
    #50 0x7f5af8c347f0 in InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:640:10
    #51 0x7f5af8c347f0 in CallFromStack /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:645:10
    #52 0x7f5af8c347f0 in js::Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3060:16
    #53 0x7f5af8c0e677 in MaybeEnterInterpreterTrampoline /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:393:10
    #54 0x7f5af8c0e677 in js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:451:13
    #55 0x7f5af8c0fa5e in js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:605:13
    #56 0x7f5af8c119e6 in InternalCall /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:640:10
    #57 0x7f5af8c119e6 in js::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, js::AnyInvokeArgs const&, JS::MutableHandle<JS::Value>, js::CallReason) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:672:8
    #58 0x7f5af8d89b0b in JS::Call(JSContext*, JS::Handle<JS::Value>, JS::Handle<JS::Value>, JS::HandleValueArray const&, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/CallAndConstruct.cpp:119:10
    #59 0x7f5aee338932 in mozilla::dom::EventHandlerNonNull::Call(mozilla::dom::BindingCallContext&, JS::Handle<JS::Value>, mozilla::dom::Event&, JS::MutableHandle<JS::Value>, mozilla::ErrorResult&) /builds/worker/workspace/obj-build/dom/bindings/./EventHandlerBinding.cpp:65:37
    #60 0x7f5aef7a2792 in void mozilla::dom::EventHandlerNonNull::Call<nsCOMPtr<mozilla::dom::EventTarget>>(nsCOMPtr<mozilla::dom::EventTarget> const&, mozilla::dom::Event&, JS::MutableHandle<JS::Value>, mozilla::ErrorResult&, char const*, mozilla::dom::CallbackObject::ExceptionHandling, JS::Realm*) /builds/worker/workspace/obj-build/dist/include/mozilla/dom/EventHandlerBinding.h:82:12
    #61 0x7f5aef7a01e5 in mozilla::JSEventHandler::HandleEvent(mozilla::dom::Event*) /builds/worker/checkouts/gecko/dom/events/JSEventHandler.cpp:199:12
    #62 0x7f5aef74b3a9 in mozilla::EventListenerManager::HandleEventSingleListener(mozilla::EventListenerManager::Listener*, nsAtom*, mozilla::WidgetEvent*, mozilla::dom::Event*, mozilla::dom::EventTarget*, bool) /builds/worker/checkouts/gecko/dom/events/EventListenerManager.cpp:1348:22
    #63 0x7f5aef74dfba in mozilla::EventListenerManager::HandleEventWithListenerArray(mozilla::EventListenerManager::ListenerArray*, nsAtom*, mozilla::EventMessage, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, bool) /builds/worker/checkouts/gecko/dom/events/EventListenerManager.cpp:1663:12
    #64 0x7f5aef74c9f6 in mozilla::EventListenerManager::HandleEventInternal(nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event**, mozilla::dom::EventTarget*, nsEventStatus*, bool) /builds/worker/checkouts/gecko/dom/events/EventListenerManager.cpp:1560:35
    #65 0x7f5aef72fdb2 in mozilla::EventTargetChainItem::HandleEvent(mozilla::EventChainPostVisitor&, mozilla::ELMCreationDetector&) /builds/worker/checkouts/gecko/dom/events/EventDispatcher.cpp:364:17
    #66 0x7f5aef72d2b8 in mozilla::EventTargetChainItem::HandleEventTargetChain(nsTArray<mozilla::EventTargetChainItem>&, mozilla::EventChainPostVisitor&, mozilla::EventDispatchingCallback*, mozilla::ELMCreationDetector&) /builds/worker/checkouts/gecko/dom/events/EventDispatcher.cpp:611:18
    #67 0x7f5aef734d7a in mozilla::EventDispatcher::Dispatch(mozilla::dom::EventTarget*, nsPresContext*, mozilla::WidgetEvent*, mozilla::dom::Event*, nsEventStatus*, mozilla::EventDispatchingCallback*, nsTArray<mozilla::dom::EventTarget*>*) /builds/worker/checkouts/gecko/dom/events/EventDispatcher.cpp:1232:11
    #68 0x7f5af4185496 in nsDocumentViewer::LoadComplete(nsresult) /builds/worker/checkouts/gecko/layout/base/nsDocumentViewer.cpp:1077:7
    #69 0x7f5af75b469e in nsDocShell::EndPageLoad(nsIWebProgress*, nsIChannel*, nsresult) /builds/worker/checkouts/gecko/docshell/base/nsDocShell.cpp:6328:13
    #70 0x7f5af75b3437 in nsDocShell::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult) /builds/worker/checkouts/gecko/docshell/base/nsDocShell.cpp:5720:7
    #71 0x7f5af75b5ef6 in non-virtual thunk to nsDocShell::OnStateChange(nsIWebProgress*, nsIRequest*, unsigned int, nsresult) /builds/worker/checkouts/gecko/docshell/base/nsDocShell.cpp
    #72 0x7f5aea5d66f7 in nsDocLoader::DoFireOnStateChange(nsIWebProgress*, nsIRequest*, int&, nsresult) /builds/worker/checkouts/gecko/uriloader/base/nsDocLoader.cpp:1372:3
    #73 0x7f5aea5d4fc6 in nsDocLoader::doStopDocumentLoad(nsIRequest*, nsresult) /builds/worker/checkouts/gecko/uriloader/base/nsDocLoader.cpp:978:14
    #74 0x7f5aea5d051a in nsDocLoader::DocLoaderIsEmpty(bool, mozilla::Maybe<nsresult> const&) /builds/worker/checkouts/gecko/uriloader/base/nsDocLoader.cpp:795:9
    #75 0x7f5aea5d3755 in nsDocLoader::OnStopRequest(nsIRequest*, nsresult) /builds/worker/checkouts/gecko/uriloader/base/nsDocLoader.cpp:678:5
    #76 0x7f5af760996a in nsDocShell::OnStopRequest(nsIRequest*, nsresult) /builds/worker/checkouts/gecko/docshell/base/nsDocShell.cpp:13822:23
    #77 0x7f5ae86f9b2b in mozilla::net::nsLoadGroup::NotifyRemovalObservers(nsIRequest*, nsresult) /builds/worker/checkouts/gecko/netwerk/base/nsLoadGroup.cpp:631:22
    #78 0x7f5ae86fd094 in mozilla::net::nsLoadGroup::RemoveRequest(nsIRequest*, nsISupports*, nsresult) /builds/worker/checkouts/gecko/netwerk/base/nsLoadGroup.cpp:535:10
    #79 0x7f5aec1840ce in DoUnblockOnload /builds/worker/checkouts/gecko/dom/base/Document.cpp:11680:18
    #80 0x7f5aec1840ce in mozilla::dom::Document::UnblockOnload(bool) /builds/worker/checkouts/gecko/dom/base/Document.cpp:11618:9
    #81 0x7f5aec1b9008 in mozilla::dom::Document::DispatchContentLoadedEvents() /builds/worker/checkouts/gecko/dom/base/Document.cpp:8149:3
    #82 0x7f5aec2ec99b in operator()<> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1164:18
    #83 0x7f5aec2ec99b in __invoke_impl<void, (lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1163:9)> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/invoke.h:60:14
    #84 0x7f5aec2ec99b in __invoke<(lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1163:9)> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/bits/invoke.h:95:14
    #85 0x7f5aec2ec99b in __apply_impl<(lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1163:9), std::tuple<> &> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/tuple:1678:14
    #86 0x7f5aec2ec99b in apply<(lambda at /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1163:9), std::tuple<> &> /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/lib/gcc/x86_64-linux-gnu/8/../../../../include/c++/8/tuple:1687:14
    #87 0x7f5aec2ec99b in apply<mozilla::dom::Document, void (mozilla::dom::Document::*)()> /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1162:12
    #88 0x7f5aec2ec99b in mozilla::detail::RunnableMethodImpl<mozilla::dom::Document*, void (mozilla::dom::Document::*)(), true, (mozilla::RunnableKind)0>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:1213:13
    #89 0x7f5ae82a13ea in mozilla::RunnableTask::Run() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:568:16
    #90 0x7f5ae828726b in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:895:26
    #91 0x7f5ae8283e48 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:718:15
    #92 0x7f5ae8284549 in mozilla::TaskController::ProcessPendingMTTask(bool) /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:504:36
    #93 0x7f5ae82a94e1 in operator() /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:222:37
    #94 0x7f5ae82a94e1 in mozilla::detail::RunnableFunction<mozilla::TaskController::TaskController()::$_0>::Run() /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.h:548:5
    #95 0x7f5ae82d145f in nsThread::ProcessNextEvent(bool, bool*) /builds/worker/checkouts/gecko/xpcom/threads/nsThread.cpp:1199:16
    #96 0x7f5ae82df19a in NS_ProcessNextEvent(nsIThread*, bool) /builds/worker/checkouts/gecko/xpcom/threads/nsThreadUtils.cpp:480:10
    #97 0x7f5ae9f69f6e in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /builds/worker/checkouts/gecko/ipc/glue/MessagePump.cpp:85:21
    #98 0x7f5ae9d91a6a in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10
    #99 0x7f5ae9d91a6a in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3
    #100 0x7f5ae9d91a6a in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3
    #101 0x7f5af3704b99 in nsBaseAppShell::Run() /builds/worker/checkouts/gecko/widget/nsBaseAppShell.cpp:148:27
    #102 0x7f5af3909672 in nsAppShell::Run() /builds/worker/checkouts/gecko/widget/gtk/nsAppShell.cpp:470:33
    #103 0x7f5af87bc81e in XRE_RunAppShell() /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:721:20
    #104 0x7f5ae9d91a6a in RunInternal /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:370:10
    #105 0x7f5ae9d91a6a in RunHandler /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:363:3
    #106 0x7f5ae9d91a6a in MessageLoop::Run() /builds/worker/checkouts/gecko/ipc/chromium/src/base/message_loop.cc:345:3
    #107 0x7f5af87bbdc3 in XRE_InitChildProcess(int, char**, XREChildData const*) /builds/worker/checkouts/gecko/toolkit/xre/nsEmbedFunctions.cpp:656:34
    #108 0x555b4e22bd9c in content_process_main /builds/worker/checkouts/gecko/browser/app/../../ipc/contentproc/plugin-container.cpp:57:28
    #109 0x555b4e22bd9c in main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:375:18
    #110 0x7f5b0fe29d8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #111 0x7f5b0fe29e3f in __libc_start_main csu/../csu/libc-start.c:392:3
    #112 0x555b4e1500a8 in _start (/home/user/workspace/browsers/m-c-20240108160242-fuzzing-asan-opt/firefox+0xdc0a8) (BuildId: 1b8f2666064b64692ead6b19d1a9b69595effc73)
Flags: in-testsuite?
Attached file prefs.js

Verified bug as reproducible on mozilla-central 20240108213208-fa142c3f71b8.
The bug appears to have been introduced in the following build range:

Start: dafb2e6890e11b74ec00d49c8f2767903a67aa92 (20230213153318)
End: 073223bab35f4149bf5665ec59b16684b7b9a65b (20230213163401)
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=dafb2e6890e11b74ec00d49c8f2767903a67aa92&tochange=073223bab35f4149bf5665ec59b16684b7b9a65b

Keywords: regression
Whiteboard: [bugmon:bisected,confirmed]

Could we please get a Severity assigned to this?

Flags: needinfo?(ayeddi)

:eeejay, would you consider this a security issue?

Flags: needinfo?(eitan)
Group: core-security
Severity: -- → S2
Flags: needinfo?(eitan)
Priority: -- → P2

This looks like a potential UAF but it wasn't filed as such, so I was a bit puzzled.

Group: core-security → layout-core-security
Flags: needinfo?(ayeddi)

(In reply to Eitan Isaacson [:eeejay] from comment #5)

This looks like a potential UAF but it wasn't filed as such, so I was a bit puzzled.

Is this based on the info in the bug itself or did you do some debugging? The initial symptom of a near-null crash looks relatively harmless.

Flags: needinfo?(eitan)

Considering this is an S2 sec issue, are we concerned at all about getting it uplifted into Fx123 before release?

(In reply to Daniel Veditz [:dveditz] from comment #6)

(In reply to Eitan Isaacson [:eeejay] from comment #5)

This looks like a potential UAF but it wasn't filed as such, so I was a bit puzzled.

Is this based on the info in the bug itself or did you do some debugging? The initial symptom of a near-null crash looks relatively harmless.

I thought the near-null was a result of the address sanitizer, or wasn't sure.

Flags: needinfo?(eitan)

Let's just unhide this then. It looks like aFrame is null in buildTextRunsScanner::FindBoundaries().

Group: layout-core-security

Downgrading to s3 because it's not a sec issue and the test case doesn't cause a crash for me in real usage.

Severity: S2 → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: