ruby-changes:50665
From: usa <ko1@a...>
Date: Mon, 19 Mar 2018 00:35:07 +0900 (JST)
Subject: [ruby-changes:50665] usa:r62828 (ruby_2_3): merge revision(s) 60421: [Backport #14047]
usa 2018-03-19 00:35:03 +0900 (Mon, 19 Mar 2018) New Revision: 62828 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62828 Log: merge revision(s) 60421: [Backport #14047] win32.c: unknown reparse tags * win32/win32.c (rb_w32_read_reparse_point): skip unknown reparse tags. [ruby-core:83539] [Bug #14047] Modified directories: branches/ruby_2_3/ Modified files: branches/ruby_2_3/ChangeLog branches/ruby_2_3/version.h branches/ruby_2_3/win32/win32.c Index: ruby_2_3/win32/win32.c =================================================================== --- ruby_2_3/win32/win32.c (revision 62827) +++ ruby_2_3/win32/win32.c (revision 62828) @@ -4840,7 +4840,7 @@ rb_w32_read_reparse_point(const WCHAR *p https://github.com/ruby/ruby/blob/trunk/ruby_2_3/win32/win32.c#L4840 ret = rp->SymbolicLinkReparseBuffer.PrintNameLength; *len = ret / sizeof(WCHAR); } - else { /* IO_REPARSE_TAG_MOUNT_POINT */ + else if (rp->ReparseTag == IO_REPARSE_TAG_MOUNT_POINT) { static const WCHAR *volume = L"Volume{"; /* +4/-4 means to drop "\??\" */ name = ((char *)rp->MountPointReparseBuffer.PathBuffer + @@ -4853,6 +4853,9 @@ rb_w32_read_reparse_point(const WCHAR *p https://github.com/ruby/ruby/blob/trunk/ruby_2_3/win32/win32.c#L4853 memcmp(name, volume, sizeof(volume) - 1 * sizeof(WCHAR)) == 0) return -1; } + else { + return -1; + } *result = name; if (e) { if ((char *)name + ret + sizeof(WCHAR) > (char *)rp + bufsize) Index: ruby_2_3/version.h =================================================================== --- ruby_2_3/version.h (revision 62827) +++ ruby_2_3/version.h (revision 62828) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1 #define RUBY_VERSION "2.3.7" #define RUBY_RELEASE_DATE "2018-03-19" -#define RUBY_PATCHLEVEL 428 +#define RUBY_PATCHLEVEL 429 #define RUBY_RELEASE_YEAR 2018 #define RUBY_RELEASE_MONTH 3 Index: ruby_2_3/ChangeLog =================================================================== --- ruby_2_3/ChangeLog (revision 62827) +++ ruby_2_3/ChangeLog (revision 62828) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1 +Mon Mar 19 00:34:38 2018 Nobuyoshi Nakada <nobu@r...> + + win32.c: unknown reparse tags + + * win32/win32.c (rb_w32_read_reparse_point): skip unknown reparse tags. + [Bug #14047] + Mon Mar 19 00:32:31 2018 Nobuyoshi Nakada <nobu@r...> * test/ruby/test_lazy_enumerator.rb: test for [Bug #14082] Index: ruby_2_3 =================================================================== --- ruby_2_3 (revision 62827) +++ ruby_2_3 (revision 62828) Property changes on: ruby_2_3 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /trunk:r60421 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/