[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18170] [Ruby 1.8.7 - Bug #410] base64 decode flaw

From: Brian Candler <redmine@...>
Date: 2008-08-07 16:19:49 UTC
List: ruby-core #18170
Issue #410 has been updated by Brian Candler.


And how does the corrupted output look?

I can replicate a similar problem here by pasting the string into irb, but it turned out to be nothing more than a lost character during pasting. This is under Ubuntu Hardy and Gnome terminal:

    instr = "..."
    instr.size

This shows instr to be 527 characters, when in fact it should be 528 (not including any newline). The unpacked result looks like this:

    ...
    ["starts-with", "$x-amz-meta-ta??B B?B

However I can paste that string directly into the Unix shell just fine: i.e.

    ruby -e 'puts "...".unpack("m").first'

and get the correct answer. So it seems to be just a problem with Unix pasting or readline, not with Ruby's base64 decoding.

You can fix this by pasting into a file, and using File.open(...) in irb to slurp in the data.

----------------------------------------
http://redmine.ruby-lang.org/issues/show/410

----------------------------------------
http://redmine.ruby-lang.org

In This Thread