diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-13 09:19:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-13 09:19:20 +0000 |
commit | 1bc72206cbd85d5c9501ff5a0aba6ff2606c8941 (patch) | |
tree | ea6a76c581db2829843ef70592cd876bddb254db /test/win32ole | |
parent | 770c6a5d4c94db32b35b2cb213d5005a5fa0f2e4 (diff) | |
download | ruby-1bc72206cbd85d5c9501ff5a0aba6ff2606c8941.tar.gz |
win32ole.c: check argument type
* ext/win32ole/win32ole.c (ole_vstr2wc): check argument type, vstr
must be a String here. reported by Marcin 'Icewall' Noga of
Cisco Talos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/win32ole')
-rw-r--r-- | test/win32ole/test_win32ole.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/win32ole/test_win32ole.rb b/test/win32ole/test_win32ole.rb index b41fd591fe..6cf2b3ce3f 100644 --- a/test/win32ole/test_win32ole.rb +++ b/test/win32ole/test_win32ole.rb @@ -312,6 +312,9 @@ if defined?(WIN32OLE) assert_raise(ArgumentError) { shell.ole_query_interface } + assert_raise(TypeError) { + shell.ole_query_interface(0x11223344) + } shell2 = shell.ole_query_interface('{A4C6892C-3BA9-11D2-9DEA-00C04FB16162}') assert_instance_of(WIN32OLE, shell2) end |