Backport #9478
closed
- Tracker changed from Bug to Backport
- Project changed from Ruby master to Backport21
- Assignee set to naruse (Yui NARUSE)
trunkではr44803で修正済みですが、1.9.3以降2.1まで ([""].pack("p")<<"a").unpack("p")
でSEGVします。
1.9.2までは起きないようです。
- 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.
- Related to Backport #9484: Fix segfault at unpacking modified String added
- Related to Backport #9485: Fix segfault at unpacking modified String added
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0