Actions
Bug #18343
closedempty hash passed to Array#pack causes Segmentation fault (2.6)
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.6.8p205 (2021-07-07 revision 67951) [x86_64-linux]
Description
passing an empty hash to Array#pack
segfaults from ruby 2.4 to ruby 2.6 on ubuntu, macos, and windows.
[0].pack('c', {})
pack takes a keyword argument, and handles unknown keywords, but the empty hash segfaults.
here is the error trace in a github workflow running only the above expression: https://github.com/notEthan/jsi/runs/4226433638 (other ruby versions and OSes are part of the same run)
Actions
Like0
Like0Like0Like0Like0Like0