[Bug 57143] New: Marshalled types can crash in mono_trace_enter_method on native to managed transition
https://bugs.winehq.org/show_bug.cgi?id=57143 Bug ID: 57143 Summary: Marshalled types can crash in mono_trace_enter_method on native to managed transition Product: Framework Mono Version: main Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: runtime Assignee: wine-bugs(a)winehq.org Reporter: besentv(a)gmail.com CC: madewokherd(a)gmail.com Distribution: --- Transitioning from native to managed (e.g. via com compatible wrapper) can crash inside mono_trace_enter_method, when dealing with marshalled types, like strings. Say we call public void Foo(unit i, [MarshalAs(UnmanagedType.LPStr)] string s) { ... } from C with something like comObj->Foo(10, "MyString"); we'll end up in mono_trace_enter_method, before the type marshaller for the string is invoked, causing the trace function to interpret the C-string as MonoType, which eventually crashes. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57143 --- Comment #1 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Is there an app affected by this? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla