Testcase found while fuzzing mozilla-central rev efefbf74d3fc (built with: --enable-debug --enable-fuzzing).
Testcase can be reproduced using the following commands:
```
$ pip install fuzzfetch grizzly-framework
$ python -m fuzzfetch --build efefbf74d3fc --debug --fuzzing -n firefox
$ python -m grizzly.replay ./firefox/firefox testcase.html
```
```
Hit MOZ_CRASH(IPC message size is too large) at /ipc/glue/MessageLink.cpp:98
==20461==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f48f242e7f8 bp 0x7ffe0015e1e0 sp 0x7ffe0015e180 T20461)
==20461==The signal is caused by a WRITE memory access.
==20461==Hint: address points to the zero page.
#0 0x7f48f242e7f8 in mozilla::ipc::PortLink::SendMessage(mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >) /ipc/glue/MessageLink.cpp:98:5
#1 0x7f48f241ceb5 in mozilla::ipc::MessageChannel::SendMessageToLink(mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >) /ipc/glue/MessageChannel.cpp:904:10
#2 0x7f48f241b9c8 in mozilla::ipc::MessageChannel::Send(mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >) /ipc/glue/MessageChannel.cpp:895:3
#3 0x7f48f24591b5 in mozilla::ipc::IProtocol::ChannelSend(IPC::Message*) /ipc/glue/ProtocolUtils.cpp:523:22
#4 0x7f48f25b1a37 in mozilla::dom::PContentChild::SendShowAlert(nsIAlertNotification*) /builds/worker/workspace/obj-build/ipc/ipdl/PContentChild.cpp:3343:21
#5 0x7f48f7960f0e in nsAlertsService::ShowPersistentNotification(nsTSubstring<char16_t> const&, nsIAlertNotification*, nsIObserver*) /toolkit/components/alerts/nsAlertsService.cpp:217:10
#6 0x7f48f59a72eb in mozilla::dom::Notification::ShowInternal() /dom/notification/Notification.cpp:1446:19
#7 0x7f48f59a65a9 in mozilla::dom::NotificationTask::Run() /dom/notification/Notification.cpp:659:12
#8 0x7f48f1aed9d2 in mozilla::SchedulerGroup::Runnable::Run() /xpcom/threads/SchedulerGroup.cpp:144:20
#9 0x7f48f1b187ce in mozilla::RunnableTask::Run() /xpcom/threads/TaskController.cpp:502:16
#10 0x7f48f1af6539 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:805:26
#11 0x7f48f1af53b8 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:641:15
#12 0x7f48f1af5633 in mozilla::TaskController::ProcessPendingMTTask(bool) /xpcom/threads/TaskController.cpp:425:36
#13 0x7f48f1b1bfc6 in operator() /xpcom/threads/TaskController.cpp:135:37
#14 0x7f48f1b1bfc6 in mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_0>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:532:5
#15 0x7f48f1b0816f in nsThread::ProcessNextEvent(bool, bool*) /xpcom/threads/nsThread.cpp:1148:16
#16 0x7f48f1b0ebda in NS_ProcessNextEvent(nsIThread*, bool) /xpcom/threads/nsThreadUtils.cpp:466:10
#17 0x7f48f242ffe6 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:85:21
#18 0x7f48f238a947 in MessageLoop::RunInternal() /ipc/chromium/src/base/message_loop.cc:331:10
#19 0x7f48f238a862 in RunHandler /ipc/chromium/src/base/message_loop.cc:324:3
#20 0x7f48f238a862 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:306:3
#21 0x7f48f6234028 in nsBaseAppShell::Run() /widget/nsBaseAppShell.cpp:137:27
#22 0x7f48f7bf3f33 in XRE_RunAppShell() /toolkit/xre/nsEmbedFunctions.cpp:917:20
#23 0x7f48f2430eda in mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:235:9
#24 0x7f48f238a947 in MessageLoop::RunInternal() /ipc/chromium/src/base/message_loop.cc:331:10
#25 0x7f48f238a862 in RunHandler /ipc/chromium/src/base/message_loop.cc:324:3
#26 0x7f48f238a862 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:306:3
#27 0x7f48f7bf3b4e in XRE_InitChildProcess(int, char**, XREChildData const*) /toolkit/xre/nsEmbedFunctions.cpp:749:34
#28 0x55dd436a39b6 in content_process_main /browser/app/../../ipc/contentproc/plugin-container.cpp:57:28
#29 0x55dd436a39b6 in main /browser/app/nsBrowserApp.cpp:327:18
#30 0x7f4906a920b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#31 0x55dd436807bc in _start (/home/worker/builds/m-c-20210810094908-fuzzing-debug/firefox-bin+0x157bc)
UndefinedBehaviorSanitizer can not provide additional info.
SUMMARY: UndefinedBehaviorSanitizer: SEGV /ipc/glue/MessageLink.cpp:98:5 in mozilla::ipc::PortLink::SendMessage(mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >)
==20461==ABORTING
```
Bug 1725044 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Testcase found while fuzzing mozilla-central rev efefbf74d3fc (built with: --enable-debug --enable-fuzzing). Testcase can be reproduced using the following commands: ``` $ pip install fuzzfetch grizzly-framework $ python -m fuzzfetch --build efefbf74d3fc --debug --fuzzing -n firefox $ python -m grizzly.replay ./firefox/firefox testcase.html ``` ``` Hit MOZ_CRASH(IPC message size is too large) at /ipc/glue/MessageLink.cpp:98 #0 0x7f48f242e7f8 in mozilla::ipc::PortLink::SendMessage(mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >) /ipc/glue/MessageLink.cpp:98:5 #1 0x7f48f241ceb5 in mozilla::ipc::MessageChannel::SendMessageToLink(mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >) /ipc/glue/MessageChannel.cpp:904:10 #2 0x7f48f241b9c8 in mozilla::ipc::MessageChannel::Send(mozilla::UniquePtr<IPC::Message, mozilla::DefaultDelete<IPC::Message> >) /ipc/glue/MessageChannel.cpp:895:3 #3 0x7f48f24591b5 in mozilla::ipc::IProtocol::ChannelSend(IPC::Message*) /ipc/glue/ProtocolUtils.cpp:523:22 #4 0x7f48f25b1a37 in mozilla::dom::PContentChild::SendShowAlert(nsIAlertNotification*) /builds/worker/workspace/obj-build/ipc/ipdl/PContentChild.cpp:3343:21 #5 0x7f48f7960f0e in nsAlertsService::ShowPersistentNotification(nsTSubstring<char16_t> const&, nsIAlertNotification*, nsIObserver*) /toolkit/components/alerts/nsAlertsService.cpp:217:10 #6 0x7f48f59a72eb in mozilla::dom::Notification::ShowInternal() /dom/notification/Notification.cpp:1446:19 #7 0x7f48f59a65a9 in mozilla::dom::NotificationTask::Run() /dom/notification/Notification.cpp:659:12 #8 0x7f48f1aed9d2 in mozilla::SchedulerGroup::Runnable::Run() /xpcom/threads/SchedulerGroup.cpp:144:20 #9 0x7f48f1b187ce in mozilla::RunnableTask::Run() /xpcom/threads/TaskController.cpp:502:16 #10 0x7f48f1af6539 in mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:805:26 #11 0x7f48f1af53b8 in mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex&> const&) /xpcom/threads/TaskController.cpp:641:15 #12 0x7f48f1af5633 in mozilla::TaskController::ProcessPendingMTTask(bool) /xpcom/threads/TaskController.cpp:425:36 #13 0x7f48f1b1bfc6 in operator() /xpcom/threads/TaskController.cpp:135:37 #14 0x7f48f1b1bfc6 in mozilla::detail::RunnableFunction<mozilla::TaskController::InitializeInternal()::$_0>::Run() /builds/worker/workspace/obj-build/dist/include/nsThreadUtils.h:532:5 #15 0x7f48f1b0816f in nsThread::ProcessNextEvent(bool, bool*) /xpcom/threads/nsThread.cpp:1148:16 #16 0x7f48f1b0ebda in NS_ProcessNextEvent(nsIThread*, bool) /xpcom/threads/nsThreadUtils.cpp:466:10 #17 0x7f48f242ffe6 in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:85:21 #18 0x7f48f238a947 in MessageLoop::RunInternal() /ipc/chromium/src/base/message_loop.cc:331:10 #19 0x7f48f238a862 in RunHandler /ipc/chromium/src/base/message_loop.cc:324:3 #20 0x7f48f238a862 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:306:3 #21 0x7f48f6234028 in nsBaseAppShell::Run() /widget/nsBaseAppShell.cpp:137:27 #22 0x7f48f7bf3f33 in XRE_RunAppShell() /toolkit/xre/nsEmbedFunctions.cpp:917:20 #23 0x7f48f2430eda in mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) /ipc/glue/MessagePump.cpp:235:9 #24 0x7f48f238a947 in MessageLoop::RunInternal() /ipc/chromium/src/base/message_loop.cc:331:10 #25 0x7f48f238a862 in RunHandler /ipc/chromium/src/base/message_loop.cc:324:3 #26 0x7f48f238a862 in MessageLoop::Run() /ipc/chromium/src/base/message_loop.cc:306:3 #27 0x7f48f7bf3b4e in XRE_InitChildProcess(int, char**, XREChildData const*) /toolkit/xre/nsEmbedFunctions.cpp:749:34 #28 0x55dd436a39b6 in content_process_main /browser/app/../../ipc/contentproc/plugin-container.cpp:57:28 #29 0x55dd436a39b6 in main /browser/app/nsBrowserApp.cpp:327:18 #30 0x7f4906a920b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16 #31 0x55dd436807bc in _start (/home/worker/builds/m-c-20210810094908-fuzzing-debug/firefox-bin+0x157bc) ```