[ruby-core:65281] Re: [ruby-trunk - Bug #10296] [Open] SEGV from unchecked Data_Get_Struct() argument

From: Eric Wong <normalperson@...>
Date: 2014-09-26 07:38:39 UTC
List: ruby-core #65281
Calling initialize_copy directly is probably buggy behavior and not
unique to just the json/zlib C extensions.

Other than telling users to never call initialize_copy directly, I'm not
sure what to do about it.  It would be a lot of effort to fix every
existing extension out there.

Moving towards rb_data_type_t should allow CRuby to enforce this
transparently.

Maybe other folks have better ideas...

In This Thread

Prev Next