NetworkUtils: fix IndexOutOfBoundsException (#66)
http://findbugs.sourceforge.net/bugDescriptions.html#RANGE_ARRAY_LENGTH Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
This commit is contained in:
parent
8536ff347b
commit
ce4126701e
@ -530,7 +530,7 @@ public class NetworkUtils
|
||||
if (isMappedIPv4Addr(addr))
|
||||
{
|
||||
byte[] newAddr = new byte[IN4_ADDR_SIZE];
|
||||
System.arraycopy(addr, 12, newAddr, 0, IN6_ADDR_SIZE);
|
||||
System.arraycopy(addr, 12, newAddr, 0, IN4_ADDR_SIZE);
|
||||
return newAddr;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user