[#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:101676] [Ruby master Bug#17467] What makes strip() and lstrip() not stripping \u0000?
From:
sg97@...
Date:
2020-12-24 07:44:12 UTC
List:
ruby-core #101676
Issue #17467 has been reported by SouravGoswami (Sourav Goswami). ---------------------------------------- Bug #17467: What makes strip() and lstrip() not stripping \u0000? https://bugs.ruby-lang.org/issues/17467 * Author: SouravGoswami (Sourav Goswami) * Status: Open * Priority: Normal * ruby -v: ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- Both strip(), and rstrip() will delete \u0000 from the end of a string. But I have a string that has "\u0000hello\u0000". Output from strip, lstrip and rstrip: "\u0000hello\u0000".strip # => "\u0000hello" "\u0000hello\u0000".lstrip # => "\u0000hello\u0000" "\u0000hello\u0000".rstrip # => "\u0000hello" Same goes for \x00 as well. While it's quite ridiculous to have NULL at the beginning of the string, but what makes it not strip? Is that slow or is that because it's never used? -- 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>