Project

General

Profile

Actions

Backport #9484

closed

Fix segfault at unpacking modified String

Added by nobu (Nobuyoshi Nakada) about 10 years ago. Updated about 10 years ago.


Description

trunkではr44803で修正済みですが、1.9.3以降2.1まで ([""].pack("p")<<"a").unpack("p") でSEGVします。
1.9.2までは起きないようです。


Related issues 1 (0 open1 closed)

Related to Backport21 - Backport #9478: Fix segfault at unpacking modified StringClosednaruse (Yui NARUSE)02/04/2014Actions

Updated by nobu (Nobuyoshi Nakada) about 10 years ago

  • Related to Backport #9478: Fix segfault at unpacking modified String added

Updated by nagachika (Tomoyuki Chikanaga) about 10 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Applied in changeset r45005.


merge revision(s) r44803: [Backport #9484]

* string.c (rb_str_modify_expand): enable capacity and disable
  assocation with packed objects when setting capa, so that
  pack("p") string fails to unpack properly after modified.
Actions

Also available in: Atom PDF

Like0
Like0Like0