Project

General

Profile

Actions

Bug #4956

closed

[PATCH] string.c (tr_s_bang): fix leak with heap strings

Added by normalperson (Eric Wong) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
-
Backport:
[ruby-core:37708]

Description

Trivially reproduced with:

loop { "this string is too long to embed".tr_s!(" \t\r\n\f", " ") }

This also affects Ruby 1.9.2-p180


Files

0001-string.c-tr_s_bang-fix-leak-with-heap-strings.patch (757 Bytes) 0001-string.c-tr_s_bang-fix-leak-with-heap-strings.patch normalperson (Eric Wong), 07/01/2011 11:21 AM
noname (500 Bytes) noname tenderlovemaking (Aaron Patterson), 07/06/2011 05:59 AM
noname (500 Bytes) noname tenderlovemaking (Aaron Patterson), 07/06/2011 07:23 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0