Norman Maurer
7a547aab65
Correctly handle IPV6-mapped-IPV4 addresses in native code when receiving datagrams ( #9560 )
...
Motivation:
291f80733ac84a2a45301bffc946e4c5522cd558 introduced a change to use a byte[] to construct the InetAddress when receiving datagram messages to reduce the overhead. Unfortunally it introduced a regression when handling IPv6-mapped-IPv4 addresses and so produced an IndexOutOfBoundsException when trying to fill the byte[] in native code.
Modifications:
- Correctly use the offset on the pointer of the address.
- Add testcase
- Make tests more robust and include more details when the test fails
Result:
No more IndexOutOfBoundsException
2019-09-11 20:30:28 +02:00
..
2017-05-03 09:53:22 -07:00
2015-08-28 21:38:35 +02:00
2018-01-04 08:04:32 -08:00
2019-01-21 07:42:05 +01:00
2019-08-11 08:42:58 +02:00
2017-08-04 09:22:53 +02:00
2019-05-25 08:00:16 +02:00
2019-05-25 08:00:16 +02:00
2019-09-06 20:58:38 +02:00
2019-09-11 20:30:28 +02:00
2019-09-11 20:30:28 +02:00
2019-04-12 12:29:08 +02:00
2017-08-18 11:00:18 -07:00
2018-06-15 10:28:50 +02:00
2015-02-04 15:39:41 +01:00
2017-07-20 08:25:37 +02:00
2015-02-04 15:39:41 +01:00
2015-02-04 15:39:41 +01:00
2015-02-04 15:39:41 +01:00
2015-02-04 15:39:41 +01:00
2019-05-22 09:23:09 +02:00
2019-03-19 11:24:07 +01:00
2019-02-11 09:47:44 +01:00
2015-02-04 15:39:41 +01:00
2019-02-11 09:47:44 +01:00
2015-02-04 15:39:41 +01:00
2015-02-04 15:39:41 +01:00
2016-04-06 12:32:14 -07:00
2018-02-20 11:40:58 +01:00
2018-06-15 10:28:50 +02:00
2016-04-06 12:32:14 -07:00
2017-02-13 17:42:24 -08:00
2016-04-06 12:32:14 -07:00
2018-09-28 22:52:00 +02:00
2019-07-17 12:23:08 +02:00
2016-04-06 12:32:14 -07:00
2018-02-20 11:40:58 +01:00
2018-06-15 10:28:50 +02:00
2016-04-06 12:32:14 -07:00
2017-02-13 17:42:24 -08:00
2016-04-06 12:32:14 -07:00
2018-09-28 22:52:00 +02:00
2019-08-11 08:42:58 +02:00
2017-11-16 14:07:54 +01:00
2017-11-16 14:07:54 +01:00
2016-08-24 07:41:24 +02:00
2017-09-18 14:46:37 -07:00
2017-05-24 13:19:18 +02:00
2015-05-27 13:38:50 +02:00
2016-04-09 19:04:45 +02:00
2014-03-17 10:35:48 +09:00
2014-03-17 10:35:48 +09:00
2014-03-17 10:35:48 +09:00
2014-03-17 10:35:48 +09:00
2016-08-27 20:57:36 +02:00
2014-03-17 10:35:48 +09:00
2016-03-16 22:35:04 -07:00
2016-05-18 09:11:49 +02:00
2016-05-18 09:11:49 +02:00
2019-02-11 09:47:44 +01:00
2014-12-12 17:49:16 +09:00
2019-02-11 09:47:44 +01:00
2019-02-08 20:08:34 +01:00
2014-05-18 02:54:06 +09:00
2018-09-28 22:52:00 +02:00
2014-03-17 10:35:48 +09:00
2016-03-06 17:47:38 +01:00
2017-05-18 11:26:27 -07:00
2019-09-03 08:40:17 +02:00
2019-07-16 13:22:30 +02:00
2019-08-21 12:34:22 +02:00
2019-02-08 20:08:34 +01:00
2015-11-02 12:29:44 -08:00