[OpenSmalltalk/opensmalltalk-vm] 805cef: Fix issue 119 jpeg plugin crashes in Win64

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OpenSmalltalk/opensmalltalk-vm] 805cef: Fix issue 119 jpeg plugin crashes in Win64

Eliot Miranda-3
 
  Branch: refs/heads/jpeg_win64_fix
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: 805cefae9022ee2bbf020bae754cc424bd5b48dc
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/805cefae9022ee2bbf020bae754cc424bd5b48dc
  Author: Nicolas Cellier <[hidden email]>
  Date:   2017-02-21 (Tue, 21 Feb 2017)

  Changed paths:
    M platforms/Cross/plugins/JPEGReadWriter2Plugin/Error.c
    M platforms/Cross/plugins/JPEGReadWriter2Plugin/JPEGReadWriter2Plugin.h
    M platforms/Cross/plugins/JPEGReadWriter2Plugin/sqJPEGReadWriter2Plugin.c

  Log Message:
  -----------
  Fix issue 119 jpeg plugin crashes in Win64

Solution is to align jump_buf on 16bytes boundary by using malloc/free pairs around setjmp/longjmp calls.
The struct error_mgr2 now contains a pointer to the jump_buf for this purpose.