1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/internal
Yusuke Endoh 2c7d3b3a72 node.c (rb_ast_new): imemo_ast is WB-unprotected
Previously imemo_ast was handled as WB-protected which caused a segfault
of the following code:

    # shareable_constant_value: literal
    M0 = {}
    M1 = {}
    ...
    M100000 = {}

My analysis is here: `shareable_constant_value: literal` creates many
Hash instances during parsing, and add them to node_buffer of imemo_ast.
However, the contents are missed because imemo_ast is incorrectly
WB-protected.

This changeset makes imemo_ast as WB-unprotected.
2021-04-26 22:46:51 +09:00
..
array.h
bignum.h
bits.h get rid of using __builtin_unreachable directly [Bug #17787] 2021-04-10 16:05:01 +09:00
class.h
compar.h
compile.h
compilers.h
complex.h
cont.h
dir.h
enc.h
encoding.h rb_enc_interned_str: handle autoloaded encodings 2021-03-22 21:37:48 +09:00
enum.h
enumerator.h
error.h
eval.h
file.h
fixnum.h
gc.h
hash.h
imemo.h node.c (rb_ast_new): imemo_ast is WB-unprotected 2021-04-26 22:46:51 +09:00
inits.h
io.h
load.h
loadpath.h
math.h
missing.h
numeric.h
object.h
parse.h
proc.h
process.h
random.h
range.h
rational.h
re.h
sanitizers.h
serial.h
signal.h
static_assert.h
string.h
struct.h
symbol.h
thread.h
time.h
transcode.h
util.h
variable.h
vm.h
warnings.h Fix some typos by spell checker 2021-04-26 10:07:41 +09:00