Project

General

Profile

Actions

Bug #13339

closed

Assertion Failed: string.c:2061:rb_str_change_terminator_length:capa >= len

Added by buehmann (Andreas Bühmann) almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
[ruby-core:80257]

Description

This makes ruby 2.4.0 crash on my system (log attached):

('a' * 23).encode('utf-16').encode!('utf-8')

If you change the length of the string (from 23 to 22 or 24), everything's fine.


Files

bug.rb (45 Bytes) bug.rb buehmann (Andreas Bühmann), 03/20/2017 08:21 PM
crash.log (13.6 KB) crash.log buehmann (Andreas Bühmann), 03/20/2017 08:21 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0