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

GitHub noreply at github.com
Tue Feb 21 00:21:56 UTC 2017

  Branch: refs/heads/jpeg_win64_fix
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: 805cefae9022ee2bbf020bae754cc424bd5b48dc
  Author: Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>
  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.

More information about the Vm-dev mailing list