Project

General

Profile

Actions

Bug #13759

closed

SEGV in StringScanner

Bug #13759: SEGV in StringScanner

Added by Eregon (Benoit Daloze) over 8 years ago. Updated about 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-06-29 trunk 59202) [x86_64-linux]
[ruby-core:82116]

Description

ruby -rstrscan -e 's=StringScanner.new("a"); s.getbyte; s[:c]'

Updated by nobu (Nobuyoshi Nakada) over 8 years ago Actions #1

  • Status changed from Open to Closed

Applied in changeset trunk|r59384.


strscan.c: fix segfault in aref

  • ext/strscan/strscan.c (strscan_aref): fix segfault after
    get_byte or getch which do not apply regexp.
    [ruby-core:82116] [Bug #13759]

Updated by nobu (Nobuyoshi Nakada) over 8 years ago Actions #2 [ruby-core:82124]

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

A bug since 2.1.

Updated by nagachika (Tomoyuki Chikanaga) about 8 years ago Actions #3 [ruby-core:82244]

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

ruby_2_4 r59506 merged revision(s) 59384.

Updated by usa (Usaku NAKAMURA) about 8 years ago Actions #4 [ruby-core:82302]

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

ruby_2_3 r59545 merged revision(s) 59384.

Actions

Also available in: PDF Atom