Project

General

Profile

Actions

Bug #13253

closed

SIGSEGV in parser_heredoc_dedent()

Added by fumfel (Kamil Frankowicz) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:79772]

Description

After some fuzz testing I found a crashing test case.

Git HEAD: fbd5cda6aad6db01bbca3d893a9970314a1bd52c

To reproduce: miniruby ruby_parse.rb


Files

ruby_parse.log (6.46 KB) ruby_parse.log Error log fumfel (Kamil Frankowicz), 02/25/2017 11:19 AM
ruby_parse.rb (8 Bytes) ruby_parse.rb Crashing test case fumfel (Kamil Frankowicz), 02/25/2017 11:19 AM
Actions #1

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

  • Status changed from Open to Closed

Applied in changeset r57717.


parse.y: indent at invalid identifier

  • parse.y (parser_heredoc_identifier): set indent only when valid
    identifier, not to dedent non-existent contents later.
    [ruby-core:79772] [Bug #13253]

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: DONTNEED, 2.3: REQUIRED, 2.4: DONTNEED

Updated by nobu (Nobuyoshi Nakada) about 7 years ago

  • Backport changed from 2.2: DONTNEED, 2.3: REQUIRED, 2.4: DONTNEED to 2.2: DONTNEED, 2.3: REQUIRED, 2.4: REQUIRED

Updated by naruse (Yui NARUSE) about 7 years ago

  • Backport changed from 2.2: DONTNEED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: REQUIRED, 2.4: DONE

ruby_2_4 r57912 merged revision(s) 57717.

Updated by nagachika (Tomoyuki Chikanaga) about 7 years ago

  • Backport changed from 2.2: DONTNEED, 2.3: REQUIRED, 2.4: DONE to 2.2: DONTNEED, 2.3: DONE, 2.4: DONE

ruby_2_3 r58061 merged revision(s) 56020,57717.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0