Bug #245

IPAddr#to_range raise ArgumentError

Added by okkez _ almost 7 years ago. Updated almost 4 years ago.

[ruby-dev:35400]
Status:Closed
Priority:Normal
Assignee:Akinori MUSHA
ruby -v: Backport:

Description

=begin
ipaddr で IPv4 アドレスを以下の方法で作成した場合に IPAddr#to_range すると
ArgumentError が発生します。

1.8, 1.9 ともに同じ状況です。

% ruby-1.8.x -ripaddr -ve "IPAddr.new('192.168.1.1').to_range"
ruby 1.8.7 (2008-06-09 patchlevel 5000) [i686-linux]
/home/kenji/all-ruby/ruby-1.8.x/lib/ruby/1.8/ipaddr.rb:371:in set':
invalid address (ArgumentError)
from /home/kenji/all-ruby/ruby-1.8.x/lib/ruby/1.8/ipaddr.rb:347:in
to_range'
from -e:1

添付のパッチで IPAddr#to_range は動くようになります。
=end

a.diff Magnifier (384 Bytes) okkez _, 07/09/2008 12:15 PM

Associated revisions

Revision 39053
Added by Zachary Scott about 2 years ago

  • doc/security.rdoc: Grammatical error on security guide Patch by Josh Bassett [Github fixes #245]

Revision 39053
Added by Zachary Scott about 2 years ago

  • doc/security.rdoc: Grammatical error on security guide Patch by Josh Bassett [Github fixes #245]

History

#1 Updated by Koichi Sasada almost 7 years ago

  • Assignee set to Akinori MUSHA

=begin

=end

#2 Updated by Nobuyoshi Nakada almost 7 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
r17940でコミット済みです。
=end

Also available in: Atom PDF