wireshark/epan/dissectors/asn1/tcap
Dario Lombardo 34873a20eb tcap: check p_tcap_private before dereferencing.
This caused a NULL pointer dereference on ASAN builds with
malformed packets.

AddressSanitizer:DEADLYSIGNAL
=================================================================
==15485==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x7ff49a4281fa bp 0x7ffe5257a4d0 sp 0x7ffe5257a2c0 T0)
==15485==The signal is caused by a WRITE memory access.
==15485==Hint: address points to the zero page.
    #0 0x7ff49a4281f9 in dissect_tcap_AARQ_application_context_name wireshark/epan/dissectors/./asn1/tcap/tcap.cnf
    #1 0x7ff498e7bab1 in dissect_ber_sequence wireshark/epan/dissectors/packet-ber.c:2425:17

Bug: 15464
Change-Id: I8fd4f09a1356211acb180e4598a33fce96d98e94
Reviewed-on: https://code.wireshark.org/review/31840
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-01-31 15:37:53 +00:00
..
CMakeLists.txt
DialoguePDUs.asn
packet-tcap-template.c Fix some spelling errors found by Lintian. 2018-12-05 18:58:19 +00:00
packet-tcap-template.h
TC-Notation-Extensions.asn
tcap.asn
tcap.cnf tcap: check p_tcap_private before dereferencing. 2019-01-31 15:37:53 +00:00
TCAPMessages.asn
UnidialoguePDUs.asn