Actions
Backport #9485
closedFix segfault at unpacking modified String
Status:
Closed
Assignee:
Description
trunkではr44803で修正済みですが、1.9.3以降2.1まで ([""].pack("p")<<"a").unpack("p")
でSEGVします。
1.9.2までは起きないようです。
Updated by nobu (Nobuyoshi Nakada) almost 11 years ago
- Related to Backport #9478: Fix segfault at unpacking modified String added
Updated by usa (Usaku NAKAMURA) almost 11 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Applied in changeset r44830.
merge revision(s) 44803: [Backport #9485]
* 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
Like0
Like0Like0