[OpenSIPS-Devel] [OpenSIPS/opensips] ab4cc7: sdp: make parse_sdp_sessions() accept optional \r\...

Răzvan Crainea noreply at github.com
Tue Feb 18 11:35:09 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ab4cc763145d065f7952740e05fbae68be184c7a
      https://github.com/OpenSIPS/opensips/commit/ab4cc763145d065f7952740e05fbae68be184c7a
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2020-02-18 (Tue, 18 Feb 2020)

  Changed paths:
    M modules/sngtc/sngtc.c
    M parser/sdp/sdp.c

  Log Message:
  -----------
  sdp: make parse_sdp_sessions() accept optional \r\n at begin

Instead of having to provide a mandatory \r\n at the begin of the SDP
body that is going to be parsed, this is now optional. Thus the SDP can
now start directly with the `v=` line.

This commit also fixes two other issues:
1. the function might underflow if `v=` is found in the first two chars
2. if the SDP has some garbage at the begining, then it is valid, the
   previous function would have validated it





More information about the Devel mailing list