In my c++ project,use call_dissector() to decode the s1ap data, in most time, it works fine. but if the s1ap contains NAS info, the exception "Access Violation" occurs. code:
the sample s1ap data(hex)
Anyone can help me? Thanks. asked 24 May '16, 20:05 garport edited 26 May '16, 02:47 grahamb ♦ |
One Answer:
Decoding this PDU with standard Wireshark 2.0.2 64 bits on Windows does not trigger any exception. As you seem to call libwireshark from your own source code, the best way to move forward is probably to investigate this yourself with a debugger. The Windows debugging symbols (assuming you are using Windows) can be found here. answered 26 May '16, 04:37 Pascal Quantin |
It would be helpful if you were indicating us which Wireshark version you are using, and if the S1AP PDU was complete (when I try to decode the one posted above it appears to be truncated: the ASN.1 PER string indicates that the NAS PDU should be 68 bytes long but only 4 bytes are present).
version: Wireshark 2.0.2 64bit Sorry about the sample data: two '0x' mixed in The sample data is only the s1ap pdu message and NOT include any headers. Thanks for help.
When you say "my c++ project" do you mean a C++ addition to Wireshark, or an external project using libwireshark?
an external project using libwireshark