Forum: Ruby-dev [Closed] Fix segfault at unpacking modified String

5cf8f058a4c094bb708174fb43e7a387?d=identicon&s=25 unknown (Guest)
on 2014-02-16 16:55
(Received via mailing list)
Issue #9484 has been updated by Tomoyuki Chikanaga.

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.

----------------------------------------
Backport #9484: Fix segfault at unpacking modified String
https://bugs.ruby-lang.org/issues/9484#change-45199

* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: Tomoyuki Chikanaga
* Category:
* Target version:
* ruby -v: 2.0.0p394
This topic is locked and can not be replied to.