Skip to content
Success

Changes

Summary

  1. osmo_rtp_get_payload(): fix bounds check for padding (details)
  2. coverity CID#216829 (details)
  3. rtp: osmo_rtp_get_payload(): Fix return ptr if RTP pkt contains padding (details)
Commit ef7551db5c1a87406aad8d54c0c2601cea97113c by Neels Hofmeyr
osmo_rtp_get_payload(): fix bounds check for padding

If we want to read a padding length octet from the end, payload_len must
be >= 1.

Change-Id: I071ad2f799bb4cfecf349c5a25bf7a46da6128dc
The file was modifiedsrc/rtp.c
Commit 2bd3329361e0fc4a02dcc5e166f708dc628a4262 by Neels Hofmeyr
coverity CID#216829

Simplify the bounds checking of values received on the wire.

Change-Id: I30beeac45ff2d8c08905986af9fabfda071ddc5b
The file was modifiedsrc/rtp.c
Commit 89a11fd644dcf9e5741196e4923ec3020c19afd0 by Neels Hofmeyr
rtp: osmo_rtp_get_payload(): Fix return ptr if RTP pkt contains padding

Padding is added at the end of the packet, hence the return pointer
calculation was wrong in the case where RTP packet contained padding at
the end.

Related: OS#6562
Change-Id: I581fa1ca5c656ecddddba0f1c85c63beece2a624
The file was modifiedsrc/rtp.c