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

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

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

Eliot Miranda-3
 
  Branch: refs/heads/FIX_WIN32_LONG_FILENAME
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: b4511352aa319c926e16640e7e8d4bc46cd45331
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/b4511352aa319c926e16640e7e8d4bc46cd45331
  Author: Nicolas Cellier <[hidden email]>
  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