Project

General

Profile

Actions

Bug #13759

closed

SEGV in StringScanner

Added by Eregon (Benoit Daloze) almost 7 years ago. Updated over 6 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]'

Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 7 years ago

  • 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) almost 7 years ago

  • 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) over 6 years ago

  • 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) over 6 years ago

  • 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: Atom PDF

Like0
Like0Like0Like0Like0