Closed Bug 564754 Opened 15 years ago Closed 15 years ago

Don't work structure type on windows x64 build

Categories

(Core :: js-ctypes, defect)

x86_64
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: m_kato, Assigned: m_kato)

References

Details

libffi may use alloca() when type is structure or long double. So ffi_call may override values->mData in FunctionType::Call(), then, ~AutoValue tries to freeing invalid memory.
Hardware: x86 → x86_64
Assignee: nobody → m_kato
I post a patch to libffi. http://www.cygwin.com/ml/libffi-discuss/2010/msg00099.html Also, I will create a patch for m-c.
Thanks. We should wait for it to get acked on the libffi list; once that happens, you can roll a patch for m-c. (No need to add it to js/src/ctypes/libffi.patch if it's already been upstreamed.)
Did your patch get accepted? If not, can you repost?
(In reply to comment #3) > Did your patch get accepted? If not, can you repost? no reply, so I will repost it.
Whiteboard: fixed-in-tracemonkey
Merged to m-c ages ago.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: fixed-in-tracemonkey
You need to log in before you can comment on or make changes to this bug.