[Backport 200 - Backport #8007][Assigned] backport r39282

Issue #8007 has been reported by nagachika (Tomoyuki C.).


Backport #8007: backport r39282
https://bugs.ruby-lang.org/issues/8007

Author: nagachika (Tomoyuki C.)
Status: Assigned
Priority: Normal
Assignee: nagachika (Tomoyuki C.)
Category:
Target version:

r39282 seems fix a potential bug.