[Description]:
Failed to extract RTP packets with ./test/rtp_decoder on Raspberry Pi 3.
[Step to reproduce]:
test.pcap should contain any SRTP packets
Run ./test/rtp_decoder -t 0 -e 128 -k a928ea6dcb646c9700ef2e38d832169302f15cd48e4efb2154714887023d <~/test.pcap
There is no output.
[Suggested solution]:
The root cause is that the memory for policy structure is not zeroed on initialize. So, it has random data in enc_xtn_hdr, enc_xtn_hdr_count fields which leads to error in srtp_crypto_alloc method.
[Description]: Failed to extract RTP packets with
./test/rtp_decoder
on Raspberry Pi 3.[Step to reproduce]:
test.pcap
should contain any SRTP packets./test/rtp_decoder -t 0 -e 128 -k a928ea6dcb646c9700ef2e38d832169302f15cd48e4efb2154714887023d <~/test.pcap
[Suggested solution]: The root cause is that the memory for policy structure is not zeroed on initialize. So, it has random data in
enc_xtn_hdr
,enc_xtn_hdr_count
fields which leads to error insrtp_crypto_alloc
method.srtp_policy_t policy = {0};