[#106341] [Ruby master Bug#18369] users.detect(:name, "Dorian") as shorthand for users.detect { |user| user.name == "Dorian" } — dorianmariefr <noreply@...>
Issue #18369 has been reported by dorianmariefr (Dorian Mari辿).
14 messages
2021/11/30
[#106351] [Ruby master Bug#18371] Release branches (release information in general) — "tenderlovemaking (Aaron Patterson)" <noreply@...>
Issue #18371 has been reported by tenderlovemaking (Aaron Patterson).
7 messages
2021/11/30
[ruby-core:106101] [Ruby master Bug#18343] empty hash passed to Array#pack causes Segmentation fault (2.6)
From:
"jeremyevans0 (Jeremy Evans)" <noreply@...>
Date:
2021-11-16 21:07:21 UTC
List:
ruby-core #106101
Issue #18343 has been updated by jeremyevans0 (Jeremy Evans).
Backport changed from 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN to 2.6: REQUIRED, 2.7: DONTNEED, 3.0: DONTNEED
Status changed from Open to Closed
This is definitely a bug in ruby 2.4 - 2.6, but ruby 2.4 and 2.5 are end of life, and ruby 2.6 is in security maintenance mode. I don't think this is a security issue, but just in case, I'll mark this for backporting for ruby 2.6. It is up to the ruby 2.6 branch maintainer whether it is actually backported.
----------------------------------------
Bug #18343: empty hash passed to Array#pack causes Segmentation fault (2.6)
https://bugs.ruby-lang.org/issues/18343#change-94690
* Author: Ethan (Ethan -)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 2.6.8p205 (2021-07-07 revision 67951) [x86_64-linux]
* Backport: 2.6: REQUIRED, 2.7: DONTNEED, 3.0: DONTNEED
----------------------------------------
passing an empty hash to `Array#pack` segfaults from ruby 2.4 to ruby 2.6 on ubuntu, macos, and windows.
```ruby
[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)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>