From: nobu@... Date: 2015-12-28T00:01:42+00:00 Subject: [ruby-dev:49464] [Ruby trunk - Bug #11880] blank string makes Win32ole crush Issue #11880 has been updated by Nobuyoshi Nakada. Description updated ---------------------------------------- Bug #11880: blank string makes Win32ole crush https://bugs.ruby-lang.org/issues/11880#change-55794 * Author: Akio Tajima * Status: Closed * Priority: Normal * Assignee: Masaki Suketa * ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x64-mswin64_100] * Backport: 2.3: UNKNOWN ---------------------------------------- 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/