Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[dsdp-tcf-dev] [Bug 313778] New: TCF Discovery fails with array accesses

https://bugs.eclipse.org/bugs/show_bug.cgi?id=313778 
Product/Component: Target Management / TCF

           Summary: TCF Discovery fails with array accesses
    Classification: DSDP
           Product: Target Management
           Version: unspecified
          Platform: PC
        OS/Version: Windows 7
            Status: NEW
          Severity: normal
          Priority: P3
         Component: TCF
        AssignedTo: dsdp.tm.tcf-inbox@xxxxxxxxxxx
        ReportedBy: daniel.friederich@xxxxxxxxxxxxx
         QAContact: martin.oberhuber@xxxxxxxxxxxxx


Build Identifier: HEAD

On my machine, the TCF discovery in eclipse does not work, it reports
"Invalid datagram packet received" in the log file. However the actual cause is
that while detecting network subnets, the java 1.6 API is reporting for
InetAddress.getNetworkPrefixLength() a network prefix length of 128, but that
network is still using IPV4 addresses.
Therefore the code trying to match addresses tests the first 128 bits of a 32
bit address, causing a ArrayIndexOutOfBoundsException and finally the log
entry.

Reproducible: Always

Steps to Reproduce:
Happens for me every time, however as it is caused by the network setup on my
machine, it might not be reproducible elsewhere.

On my machine, I get the following subnets:
[127.0.0.1/8, 10.82.136.36/128]
Obviously, the second one is the problematic one as it is using a Ipv4 address
with 128 a bit prefix.

-- 
Configure bugmail: https://bugs.eclipse.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


Back to the top