General

Profile

rhenium (Kazuki Yamaguchi)

Issues

open closed Total
Assigned issues 4 50 54
Reported issues 4 35 39

Projects

Project Roles Registered on
Ruby Committer 05/17/2016

Activity

06/11/2026

09:05 AM Ruby Feature #22102: C API to obtain a C string from a Ruby String
As @kou pointed out in <https://bugs.ruby-lang.org/issues/19315#note-36>, `rb_str_to_cstr()` in string.c returns NULL if the string is found to contain NUL bytes in the middle.
IMO an exception more often is desirable for typical use ...
rhenium (Kazuki Yamaguchi)
07:08 AM Ruby Feature #22102 (Open): C API to obtain a C string from a Ruby String
Extracted from https://bugs.ruby-lang.org/issues/19315#note-35
It would be nice to have a utility function whose sole purpose is to obtain a C string (NUL-terminated and containing no NUL bytes) from a Ruby String. I suggest adding so...
rhenium (Kazuki Yamaguchi)
07:13 AM Ruby Feature #19315: Lazy substrings in CRuby
kou (Kouhei Sutou) wrote in #note-36:
> rhenium (Kazuki Yamaguchi) wrote in #note-35:
> ...
On top of my head: I think some users will have to choose between adding new `RB_GC_GUARD()` for temporary objects on the stack or migrating to...
rhenium (Kazuki Yamaguchi)

06/09/2026

08:59 AM Ruby Feature #19315: Lazy substrings in CRuby
kou (Kouhei Sutou) wrote in #note-27:
> I think that the current `RSTRING_PTR()` for non frozen `String` also has similar situation. If arbitrary Ruby code changes the target `String`, pointer returned by `RSTRING_PTR()` may be invalid:...
rhenium (Kazuki Yamaguchi)

06/03/2026

06:25 AM Ruby Feature #19315: Lazy substrings in CRuby
Eregon (Benoit Daloze) wrote in #note-22:
> What's the problem?
> ...
I think it would also be a problem in `some_function_call(RSTRING_PTR(str), RSTRING_END(str))`, where the evaluation order is not guaranteed.
---
himura467 (Ak...
rhenium (Kazuki Yamaguchi)

05/30/2026

09:03 AM Ruby Revision 0765e35c (git): [ruby/openssl] asn1: limit nesting depth in OpenSSL::ASN1.decode
Feeding a deeply nested constructed encoding to OpenSSL::ASN1.decode,
.decode_all, or .traverse can cause unbounded recursion and result in
SystemStackError.
Add an explicit nesting depth limit of 200 levels and raise
OpenSSL::ASN1::ASN...
rhenium (Kazuki Yamaguchi)

05/29/2026

01:07 PM Ruby Revision 861aed4f (git): [ruby/openssl] kdf: document incompatibility with timeout
OpenSSL::KDF.pbkdf2_hmac and .scrypt are currently not interrupted by
Timeout.timeout because they make a single, slow OpenSSL function call
during which Ruby-level interrupts cannot be handled. Add advice against
using parameters from u...
rhenium (Kazuki Yamaguchi)
10:40 AM Ruby Revision 7d1be088 (git): test/ruby/test_io.rb: do not set RLIMIT_NPROC
On my computer, setting RLIMIT_NPROC to the low value of 2048 prevents
the forked process from creating any new native threads and it causes
make test-all to hang forever.
Remove it, as it does not seem to serve any purpose here.
rhenium (Kazuki Yamaguchi)
08:45 AM Ruby Revision c3ddba2f (git): [ruby/openssl] ts: do not use the "reuse" behavior of d2i_*{,_bio}() functions
The man page discourages using this behavior because it may leave the
object in an inconsistent state on error paths. This fixes a potential
memory leak reported at <https://github.com/ruby/openssl/issues/1011>.
https://github.com/ruby/...
rhenium (Kazuki Yamaguchi)
08:45 AM Ruby Revision f995e226 (git): [ruby/openssl] pkcs12: add missing error check for d2i_PKCS12_bio()
Also, avoid using the "reuse" behavior of d2i_*{,_bio}() functions.
https://github.com/ruby/openssl/commit/3f1a7a377c
rhenium (Kazuki Yamaguchi)

Also available in: Atom