Closed
Bug 1751195
Opened 4 years ago
Closed 4 years ago
Crash [@ mozilla::dom::FontFace::Constructor]
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
98 Branch
People
(Reporter: jkratzer, Assigned: jkratzer)
References
(Blocks 1 open bug)
Details
(Keywords: crash, testcase)
Crash Data
Attachments
(1 file, 1 external file)
|
33 bytes,
application/x-javascript
|
Details |
Testcase found while fuzzing mozilla-central rev 3ddab45ce6bd (built with --enable-address-sanitizer --enable-fuzzing).
Testcase can be reproduced using the following commands:
$ pip install fuzzfetch
$ python -m fuzzfetch --build 6531d095b2a7 --asan --fuzzing -n build
$ ./build/firefox -xpcshell ./testcase.html
==291758==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x7fec1a2c8ceb bp 0x7fff288592f0 sp 0x7fff28859200 T0)
==291758==The signal is caused by a READ memory access.
==291758==Hint: address points to the zero page.
#0 0x7fec1a2c8ceb in operator! /builds/worker/workspace/obj-build/dist/include/mozilla/RefPtr.h:311:36
#1 0x7fec1a2c8ceb in GetDoc /builds/worker/checkouts/gecko/dom/base/nsPIDOMWindow.h:401:9
#2 0x7fec1a2c8ceb in mozilla::dom::FontFace::Constructor(mozilla::dom::GlobalObject const&, nsTSubstring<char> const&, mozilla::dom::UTF8StringOrArrayBufferOrArrayBufferView const&, mozilla::dom::FontFaceDescriptors const&, mozilla::ErrorResult&) /builds/worker/checkouts/gecko/layout/style/FontFace.cpp:163:27
#3 0x7fec16fb1321 in mozilla::dom::FontFace_Binding::_constructor(JSContext*, unsigned int, JS::Value*) /builds/worker/workspace/obj-build/dom/bindings/FontFaceBinding.cpp:2094:54
#4 0x7fec1eeb5f45 in CallJSNative /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:425:13
#5 0x7fec1eeb5f45 in CallJSNativeConstructor /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:441:8
#6 0x7fec1eeb5f45 in InternalConstruct(JSContext*, js::AnyConstructArgs const&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:636:10
#7 0x7fec1ee9f58f in Interpret(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:3299:16
#8 0x7fec1ee843e1 in js::RunScript(JSContext*, js::RunState&) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:394:13
#9 0x7fec1eeb71b3 in js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JS::Handle<JSObject*>, JS::Handle<JS::Value>, js::AbstractFramePtr, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/Interpreter.cpp:767:13
#10 0x7fec1f16a92b in ExecuteScript(JSContext*, JS::Handle<JSObject*>, JS::Handle<JSScript*>, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:515:10
#11 0x7fec1f16a610 in JS_ExecuteScript(JSContext*, JS::Handle<JSScript*>, JS::MutableHandle<JS::Value>) /builds/worker/checkouts/gecko/js/src/vm/CompilationAndEvaluation.cpp:532:10
#12 0x7fec140411c3 in ProcessFile(mozilla::dom::AutoJSAPI&, char const*, _IO_FILE*, bool) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:789:27
#13 0x7fec1404157b in Process(mozilla::dom::AutoJSAPI&, char const*, bool) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:845:13
#14 0x7fec13ffcbbf in ProcessArgs(mozilla::dom::AutoJSAPI&, char**, int, XPCShellDirProvider*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:1011:12
#15 0x7fec13ff8f36 in XRE_XPCShellMain(int, char**, char**, XREShellData const*) /builds/worker/checkouts/gecko/js/xpconnect/src/XPCShellImpl.cpp:1395:16
#16 0x560261e488fc in do_main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:189:24
#17 0x560261e488fc in main /builds/worker/checkouts/gecko/browser/app/nsBrowserApp.cpp:395:16
#18 0x7fec35d470b2 in __libc_start_main /build/glibc-eX1tMB/glibc-2.31/csu/../csu/libc-start.c:308:16
#19 0x560261d97179 in _start (/home/jkratzer/builds/mc-asan/firefox+0x5d179)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /builds/worker/workspace/obj-build/dist/include/mozilla/RefPtr.h:311:36 in operator!
| Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Assignee: nobody → jkratzer
Status: NEW → ASSIGNED
Pushed by sledru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/adb55d21d72a
[Bug 1751195] FontFace must bind itself to valid nsIGlobalObject, r=emilio
Comment 3•4 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
Updated•4 years ago
|
Crash Signature: [@ mozilla::dom::FontFace::Constructor]
Updated•4 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•