[#101179] Spectre Mitigations — Amel <amel.smajic@...>
Hi there!
5 messages
2020/12/01
[#101180] Re: Spectre Mitigations
— Chris Seaton <chris@...>
2020/12/01
I wouldn’t recommend using Ruby to run in-process untrusted code in the first place. Are people doing that?
[#101694] Ruby 3.0.0 Released — "NARUSE, Yui" <naruse@...>
We are pleased to announce the release of Ruby 3.0.0. From 2015 we
4 messages
2020/12/25
[ruby-core:101464] [Ruby master Bug#17395] Kernel::Integer does not raise ArgumentError for strings with whitespace padding
From:
busch.michael@...
Date:
2020-12-15 14:22:01 UTC
List:
ruby-core #101464
Issue #17395 has been reported by mikelikesbikes (Mike Busch).
----------------------------------------
Bug #17395: Kernel::Integer does not raise ArgumentError for strings with whitespace padding
https://bugs.ruby-lang.org/issues/17395
* Author: mikelikesbikes (Mike Busch)
* Status: Open
* Priority: Normal
* ruby -v: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin18]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
According to the Kernel::Integer docs, ArgumentError should be raised if the argument is a String and doesn't conform with numerical representation. However, it appears that Kernel::Integer does not raise ArgumentError when a string contains leading or trailing whitespace.
Ruby Version: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin18]
Reproduce Steps:
```
Integer(" 1")
Integer("1 ")
```
Actual Results:
both parse to a valid Integer, 1, no exception is raised.
Expected Results:
both should raise ArgumentError because they contain non-numerical characters
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>