General

Profile

stanhu (Stan Hu)

  • Login: stanhu
  • Registered on: 01/08/2018
  • Last sign in: 07/09/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 11 13

Projects

Project Roles Registered on
Ruby Contributor 03/03/2025

Activity

11/18/2026

10:17 PM Ruby Revision ed72ef8a (git): Bound compiled program writes against size accounting
The compiled-program size guard in add_opcode() only runs per opcode,
but the bulk writers bypass it: character-class bodies via
add_multi_byte_cclass() and add_bytes(), the class bitset via
add_bitset(), and exact strings via add_compil...
stanhu (Stan Hu)
10:17 PM Ruby Revision a5a1a898 (git): Harden BBuf size arithmetic against 32-bit overflow
The compiled-program bounds check added previously stops the regex
compiler from emitting an oversized program, but the buffer macros
themselves still did their size math in signed int. BBUF_WRITE() computed
"int used = pos + (int)n", wh...
stanhu (Stan Hu)
09:57 PM Ruby Revision 6c6e6c92 (git): Bound compiled program writes against size accounting
The compiled-program size guard in add_opcode() only runs per opcode,
but the bulk writers bypass it: character-class bodies via
add_multi_byte_cclass() and add_bytes(), the class bitset via
add_bitset(), and exact strings via add_compil...
stanhu (Stan Hu)
09:57 PM Ruby Revision 57c24699 (git): Harden BBuf size arithmetic against 32-bit overflow
The compiled-program bounds check added previously stops the regex
compiler from emitting an oversized program, but the buffer macros
themselves still did their size math in signed int. BBUF_WRITE() computed
"int used = pos + (int)n", wh...
stanhu (Stan Hu)
09:39 PM Ruby Revision c5885896 (git): Bound compiled program writes against size accounting
The compiled-program size guard in add_opcode() only runs per opcode,
but the bulk writers bypass it: character-class bodies via
add_multi_byte_cclass() and add_bytes(), the class bitset via
add_bitset(), and exact strings via add_compil...
stanhu (Stan Hu)
09:39 PM Ruby Revision d9f170a9 (git): Harden BBuf size arithmetic against 32-bit overflow
The compiled-program bounds check added previously stops the regex
compiler from emitting an oversized program, but the buffer macros
themselves still did their size math in signed int. BBUF_WRITE() computed
"int used = pos + (int)n", wh...
stanhu (Stan Hu)

07/09/2026

04:05 AM Ruby Bug #21685: Unnecessary context-switching, especially bad on multi-core machines.
@hsbt Could we at backport this to 3.4? stanhu (Stan Hu)

04/16/2026

05:05 PM Ruby Bug #21685: Unnecessary context-switching, especially bad on multi-core machines.
@ko1 @hsbt Would it be possible to backport https://github.com/ruby/ruby/pull/15840 to Ruby 3.3, 3.4, and 4.0? We're seeing a significant regression after upgrading to Ruby 3.2 where this contention causes Sidekiq worker threads to silen... stanhu (Stan Hu)

10/27/2025

06:33 AM Ruby Revision b839deec (git): [ruby/openssl] Check NULL values for deprecated EVP_PKEY_get0() functions
In OpenSSL <= 1.1.1, EVP_PKEY_get0() always returned a valid object, so
a NULL check was not necessary. In OpenSSL 3.0, the function can return
NULL (https://docs.openssl.org/3.0/man7/migration_guide/#deprecated-function-mappings),
so gu...
stanhu (Stan Hu)

08/01/2025

06:33 PM Ruby Bug #21111: RbConfig::CONFIG['CXX'] quietly set to "false" when Ruby cannot build C++ programs
> I am guessing it has something to do with a mac OS update where one or more developer tools need to be reinstalled (purely a guess).
FYI, I think this was caused by a bug in Xcode 16.0. I filed a bug with Apple in September 2024 ent...
stanhu (Stan Hu)

Also available in: Atom