Skip to content

java.lang.NegativeArraySizeException #101

@frojasg1

Description

@frojasg1

Hello,
we are using your library to parse a pcap file (which is correctly read by wireshark ) and get packet information of it.

But, when reading the second packet, the header of that packet is not placed correctly in the bytes stream, and gives error:

java.lang.NegativeArraySizeException
    at io.pkts.buffer.BoundedInputStreamBuffer.readBytes(BoundedInputStreamBuffer.java:145)
    at io.pkts.framer.PcapFramer.frame(PcapFramer.java:66)
...

Can this be avoided in any way?

I attach the 3000 first bytes of the pcap, so that you can analize it
http://www.frojasg1.com/small.pcap

I am new with your library, and I do not know if I am doing something badly.

I will be looking forward your answer.

kind regards,
Fran.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions