Kasumi Hanazuki eb53131367 [ruby/ipaddr] ntop: Measure address size in bytes
`IPAddr.ntop` takes the binary representation of an IP address, whose
length should be 4 or 16 *bytes* (not characters/codepoints).

The current implementation accepts strings in any encoding, but for
some values in non-BINARY encoding, it fails proper length check and
raises an `AddressFamilyError`. Since passing strings in a multibyte
encoding has never worked correctly for years, this patch makes it an
explicit error with an `InvalidAddressError`.

Fixes: https://github.com/ruby/ipaddr/issues/56

https://github.com/ruby/ipaddr/commit/a33fd14d4a
2023-12-25 21:12:49 +09:00
..
2023-12-25 21:12:49 +09:00
2023-12-20 19:11:02 +09:00
2023-11-07 05:17:52 +00:00
2023-12-16 11:48:49 +08:00
2023-12-14 15:06:09 -05:00
2023-11-07 02:27:08 +00:00
2023-12-23 16:50:29 +09:00
2023-11-06 10:08:41 +00:00
2023-12-16 13:06:47 +08:00
2023-11-07 07:01:35 +00:00
2023-11-06 18:33:03 +09:00
2023-12-05 06:38:55 +00:00
2023-11-07 13:37:17 +09:00
2023-11-07 07:32:00 +00:00
2023-11-07 07:15:34 +00:00
2023-11-07 12:53:16 +09:00
2023-11-07 03:47:15 +00:00
2023-11-07 15:35:37 +09:00
2023-11-07 02:52:46 +00:00
2023-11-07 03:42:58 +00:00
2023-12-07 07:22:20 +00:00
2023-11-07 06:16:31 +00:00
2023-11-07 01:00:08 +00:00
2023-11-07 03:10:45 +00:00
2023-12-25 21:12:49 +09:00
2023-12-13 15:11:21 +09:00
2023-12-23 16:50:33 +09:00
2023-11-06 09:46:21 +00:00
2023-11-06 09:44:09 +00:00
2023-11-07 05:09:48 +00:00
2023-11-07 11:39:02 +09:00
2023-11-07 01:59:17 +00:00
2023-11-06 09:29:53 +00:00
2023-11-07 01:46:40 +00:00
2023-11-06 19:03:04 +09:00