Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NegativeArraySizeException #101

Open
frojasg1 opened this issue Dec 12, 2018 · 0 comments
Open

java.lang.NegativeArraySizeException #101

frojasg1 opened this issue Dec 12, 2018 · 0 comments

Comments

@frojasg1
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant