[ruby-dev:47950] [Backport21 - Backport #9478] [Closed] Fix segfault at unpacking modified String
From:
naruse@...
Date:
2014-02-05 02:35:37 UTC
List:
ruby-dev #47950
Issue #9478 has been updated by Yui NARUSE.
Status changed from Open to Closed
% Done changed from 0 to 100
Applied in changeset r44819.
----------
merge revision(s) 44803: [Backport #9478]
* 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 #9478: Fix segfault at unpacking modified String
https://bugs.ruby-lang.org/issues/9478#change-44920
* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: Yui NARUSE
* Category:
* Target version:
* ruby -v: r44803
----------------------------------------
1.9以降でr44803で追加したテストがSEGVします。
--
http://bugs.ruby-lang.org/