I am building my Lua plugin for Wireshark, but I got a failed assertion below:
[Dissector bug, protocol TCP: /build/wireshark-rjGTDh/wireshark-2.6.3/epan/dissectors/packet-tcp.c:5591: failed assertion "save_desegment_offset == pinfo->desegment_offset && save_desegment_len == pinfo->desegment_len"]
Our prorotocol is top on TCP and has a length code in. so I want to get enough bytes for my dissector.
At first, I use pinfo.desegment_len = missing_bytes and return nothing, but got the assertion.
Now, I am using dissect_tcp_pdus, still got the problem.
I attach my code below and look forward to your reply.
Thank you very much and sorry to bother you.
Here is my code: