Bug #10719
closed
empty splatting literal hash after other keywords causes SEGV
Added by nobu (Nobuyoshi Nakada) almost 10 years ago.
Updated almost 10 years ago.
Description
$ ruby -e 'foo(a: 1, **{})'
ruby: [BUG] Segmentation fault at 0x00000000000018
ruby 2.3.0dev (2015-01-09 trunk 49192) [universal.x86_64-darwin14]
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Applied in changeset r49193.
parse.y: eliminate empty hashes
- parse.y (assocs, assoc): eliminate splatting empty literal
hashes. [ruby-core:67446] [Bug #10719]
- compile.c (compile_array_): supprt splatted hash in hash type.
- Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
ruby_2_2 r49302 merged revision(s) 49193.
- Related to Bug #10856: Splat with empty keyword args gives unexpected results added
Also available in: Atom
PDF
Like0
Like0Like0Like0