Skip to content
Snippets Groups Projects

RTP_EncDec: avoid crashes caused by invalid RTP packets

Merged Philipp Maier requested to merge pmaier28s/titan.ProtocolModules.RTP:master into master

The function f__RTP__dec accepts data (RTP packet) of arbitrary length, but it also accesses regions of the RTP header using fixed indexes. In case the RTP packet is shorter than those indexes, a segmentation failt occurs. This can be avoided by checking if the incoming RTP packet has at least a minimum size of 12 bytes. In this case we would return an empty ret_val.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading