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

Crash: long int too large to convert to int in dpkt_http_replacement.py, f.read(n) #18

Open
klepikov opened this issue May 15, 2012 · 1 comment

Comments

@klepikov
Copy link

File "pcap2har/httpsession.py", line 134, in init
self.flows.append(http.Flow(flow))
File "pcap2har/http/flow.py", line 24, in init
success, requests, responses = parse_streams(tcpflow.fwd, tcpflow.rev)
File "pcap2har/http/flow.py", line 117, in parse_streams
requests = gather_messages(Request, request_stream)
File "pcap2har/http/flow.py", line 90, in gather_messages
msg = MessageClass(tcpdir, pointer)
File "pcap2har/http/request.py", line 16, in init
http.Message.init(self, tcpdir, pointer, dpkt_http.Request)
File "pcap2har/http/message.py", line 24, in init
self.msg = msgclass(tcpdir.data[pointer:])
File "pcap2har/dpkt_http_replacement.py", line 74, in init
self.unpack(args[0])
File "pcap2har/dpkt_http_replacement.py", line 133, in unpack
Message.unpack(self, f.read())
File "pcap2har/dpkt_http_replacement.py", line 88, in unpack
self.body = parse_body(f, self.headers)
File "pcap2har/dpkt_http_replacement.py", line 45, in parse_body
buf = f.read(n)
OverflowError: long int too large to convert to int

@andrewf
Copy link
Owner

andrewf commented May 19, 2012

I have no idea what's going on there. `n' was supposedly converted to an int a couple lines before. Can you give me a pcap?

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

2 participants