diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-03-08 12:16:05 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-03-08 13:59:21 +0900 |
commit | 677c3228d09eaeaa57ad18396f52841f31411b6a (patch) | |
tree | e2f7fb62794eb022c5cd90a8bb3a5b63b91d7da9 /builtin.c | |
parent | 5889cbd7de4d7e9d8d340ae553f994e231ecc8ef (diff) | |
download | ruby-677c3228d09eaeaa57ad18396f52841f31411b6a.tar.gz |
Check loading built-in binaries
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -48,6 +48,7 @@ rb_load_with_builtin_functions(const char *feature_name, const struct rb_builtin vm->builtin_function_table = table; vm->builtin_inline_index = 0; const rb_iseq_t *iseq = rb_iseq_ibf_load_bytes((const char *)bin, size); + ASSUME(iseq); // otherwise an exception should have raised vm->builtin_function_table = NULL; // exec |