[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] b45113: Fix the win32 long path name realloc fix:

GitHub noreply at github.com
Sun Oct 29 20:24:46 UTC 2017

  Branch: refs/heads/FIX_WIN32_LONG_FILENAME
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: b4511352aa319c926e16640e7e8d4bc46cd45331
  Author: Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>
  Date:   2017-10-29 (Sun, 29 Oct 2017)

  Changed paths:
    M platforms/win32/plugins/FilePlugin/sqWin32File.h
    M platforms/win32/vm/sqWin32Directory.c

  Log Message:
  Fix the win32 long path name realloc fix:

1) put the 32767 protection into the REALLOC_WIN32_PATH macro
2) correct the size of alloca when we prepend path with \\?\ (alloca is forgiving, but let's not create future hard to find bugs!)
3) correct the offset where we were copying the filename part which did not take 4 prepended char into account

More information about the Vm-dev mailing list