[Bug 20976] sourceformatX causes wine to segfault after tips of the day

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Jul 11 12:27:08 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=20976


Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |focht at gmx.net




--- Comment #7 from Anastasius Focht <focht at gmx.net>  2010-07-11 12:27:08 ---
Hello,

dupe of bug 10503

The app contains brain damaged code that messes with ESP while accessing DIB
regions, hence the segfault.

--- snip ---
0x00535be8: pushl    %ebp
0x00535be9: movl    %esp,%ebp
0x00535beb: movl    %ebx,0x005978e4
0x00535bf1: movl    %edi,0x005978ec
0x00535bf7: movl    %esi,0x005978e8
0x00535bfd: movl    %esp,0x005978f0 ; <--- local save
0x00535c03: movl    %ebp,0x005978f4
...
0x00535c40: movl    %eax,0x005978f8
0x00535c46: movl    %edi,%ebp
0x00535c48: movl    %esi,%esp ; <---
0x00535c4a: movl    %ecx,%ecx
0x00535c4c: movl    0x0(%ebp),%eax
0x00535c4f: movl    0x0(%esp),%edi ; <---
...
0x00535c8f: addl    %edi,%eax
0x00535c91: addl    %esi,%ebx
0x00535c93: andl    $0xff00ff00,%eax
0x00535c98: shrl    $0x5,%ebx
0x00535c9b: andl    $0xff00ff,%ebx
0x00535ca1: orl    %ebx,%eax
0x00535ca3: movl    %eax,0x0(%ecx)
0x00535ca5: addl    $4,%ebp
0x00535ca8: addl    $4,%esp ; <---
0x00535cab: addl    $4,%ecx
0x00535cae: cmpl    0x005978f8,%ebp
0x00535cb4: jnz    0x00535c4c
0x00535cb6: movl    0x005978e4,%ebx
0x00535cbc: movl    0x005978ec,%edi
0x00535cc2: movl    0x005978e8,%esi
0x00535cc8: movl    0x005978f0,%esp ; <--- local restore
0x00535cce: movl    0x005978f4,%ebp
0x00535cd4: popl    %ebp
0x00535cd5: ret    $0x10
--- snip ---

You could try DIB engine patches (bug 421).

Regards

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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.



More information about the wine-bugs mailing list