summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2025-07-04 21:57:42 +0900
committergit <svn-admin@ruby-lang.org>2025-07-05 14:03:32 +0000
commitb6817392957b8879d2f847280abd481f4cd062fe (patch)
tree5b344137ff5d19657b848cac20a7efc6c1d28bd5 /spec/ruby/core
parentad7d75c9324c643fb6639ae670e92c98297c8300 (diff)
[ruby/openssl] pkey/ec: avoid calling SYM2ID() on user-supplied objects
Compare by the VALUE value instead of ID. Calling SYM2ID() on a dynamic symbol will pin a permanent ID. These methods only accept known static symbols, and passing anything else is an incorrect usage that results in an exception. Nonetheless, avoiding SYM2ID() seems to be a good idea since there is no runtime cost. https://github.com/ruby/openssl/commit/0d66296cdc
Diffstat (limited to 'spec/ruby/core')
0 files changed, 0 insertions, 0 deletions