From: nagachika00@... Date: 2016-05-05T17:28:51+00:00 Subject: [ruby-dev:49612] [Ruby trunk Bug#11880] blank string makes Win32ole crush Issue #11880 has been updated by Tomoyuki Chikanaga. Backport changed from 2.3: REQUIRED to 2.3: DONE ruby_2_3 r54923 merged revision(s) 53322,53323. ---------------------------------------- Bug #11880: blank string makes Win32ole crush https://bugs.ruby-lang.org/issues/11880#change-58499 * Author: Akio Tajima * Status: Closed * Priority: Normal * Assignee: Masaki Suketa * ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32] * Backport: 2.3: DONE ---------------------------------------- Win32OLEのオブジェクトに空文字列を与えるとクラッシュします。 再現スクリプト(method_missing側) ~~~ruby require 'win32ole' shell = WIN32OLE.new('WScript.Shell') shell.Popup('') ~~~ 逆方向(COMコンポーネント側からの空文字列==`SysAllocStringLen(0)`のBSTRについても同様です。 添付のパッチで双方向とも修正できていると思います。 ---Files-------------------------------- blankstr.patch (930 Bytes) -- https://bugs.ruby-lang.org/