diff options
author | Zack Deveau <zack.ref@gmail.com> | 2024-04-19 16:53:05 -0400 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-04-20 10:41:01 +0900 |
commit | 9555a997aca422214c0e4d5a0fcf56210959a6f5 (patch) | |
tree | 7e7bc3961463627233117bcb4916949178226f98 /test/openssl/test_x509name.rb | |
parent | 23be6599a20a0fd6bbf650816d163f9adfb82009 (diff) |
In cases where RubyVM::InstructionSequence.load_from_binary() is
passed a param other than a String, we attempt to call the
RSTRING_LENINT macro on it which can cause a segfault.
ex:
```
var_0 = 0
RubyVM::InstructionSequence.load_from_binary(var_0)
```
This commit adds a type check to raise unless we are provided
a String.
Diffstat (limited to 'test/openssl/test_x509name.rb')
0 files changed, 0 insertions, 0 deletions