Closed Bug 766255 Opened 14 years ago Closed 14 years ago

Stack-buffer-overflow when doing XMLHttpRequest

Categories

(Core :: DOM: Core & HTML, defect)

16 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: ax330d, Unassigned)

Details

(Keywords: testcase, Whiteboard: [asan])

Attachments

(2 files)

ASan detected stack-buffer-overflow happening on build 264f0a7a878c when sending XMLHttp request during (or after) getting WebGL canvas context. Could not reproduce on build dc410944aabcm (VirtualBox) and on latest Nightly on Windows 7 x64.
Attached file ASan log —
Whiteboard: [asan]
Attachment #634541 - Attachment mime type: application/octet-stream → application/java-archive
Component: Untriaged → DOM
Product: Firefox → Core
QA Contact: untriaged → general
This involves XHR and WebGL canvas context, so maybe it is a regression from some kind of new DOM bindings thing. How does that sound to you, Boris?
Seems moderately unlikely, given that we're inside the C++ code at that point and none of the binding stuff is really on the stack there at first glance? Is this relialy reproducible? Can someone explain the log involved to me? It looks like the access is 66 bytes into the frame and none of the locals are at that address, right? Is there a line number involved? I don't obviously see one...
s/relialy/reliably/ of course.
Keywords: testcase
Judging from the log, strlen is used on some string that is not null-terminated, and that string lives on the stack. However, I was not able to reproduce the issue locally, even with a usable WebGL context. @Arthur: Is this an opt build? If so, can you try to reproduce with a debug build, maybe one of the nightly debug builds I have put online? Maybe the stack gets better then.
This was an opt build, but at this moment I have no possibility to check debug build - I am away from my workstation for three weeks, no Linux in my possession.
If no one can reproduce is it possible some other bug fixed it?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Seems that this bug is fixed - can't reproduce on own opt build bcfe6817a213 - also does not crash on decoder's debug build c511865c8ab1 (oldest public could find).
Hopefully this is fixed then. Please re-open (or re-file, if you can't) if the symptoms come back.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Group: core-security → core-security-release
Group: core-security-release
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: