[ruby-core:78406] Re: [Ruby trunk Bug#12988] Calling `inspect` sometimes causes a segv

From: Eric Wong <normalperson@...>
Date: 2016-11-29 00:29:08 UTC
List: ruby-core #78406
tenderlove@ruby-lang.org wrote:
> * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: REQUIRED

I think a backport will be required for all supported versions.
I'm surprised this remained undiscovered for so many years.

> I've attached a patch that fixes this by using the length of the array rather than the size of the IV index table.

Your fix looks good to me.

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next