[OpenSIPS-Devel] [OpenSIPS/opensips] c69513: Fix off-by-one error allocating space for protos[]...

Maksym Sobolyev noreply at github.com
Thu Mar 23 16:58:51 UTC 2023


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c69513f789670ca45b68e1476de0b84f9e359370
      https://github.com/OpenSIPS/opensips/commit/c69513f789670ca45b68e1476de0b84f9e359370
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M net/trans.c

  Log Message:
  -----------
  Fix off-by-one error allocating space for protos[]. Reported by
OSS-Fuzz.


  Commit: 042ca31fd6aba3f566f9dafc6acaa88e6ba923aa
      https://github.com/OpenSIPS/opensips/commit/042ca31fd6aba3f566f9dafc6acaa88e6ba923aa
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M pvar.c

  Log Message:
  -----------
  Expect that protos[proto].name can be NULL.


  Commit: 9e99320b0c7fa38103c0a32a2427c7aeae90c813
      https://github.com/OpenSIPS/opensips/commit/9e99320b0c7fa38103c0a32a2427c7aeae90c813
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M parser/contact/contact.c

  Log Message:
  -----------
  Fix a pkg memory leak: when parsing of the Contact fails, free
all associated parameters that have been parsed so far, not just
the contact structure itself. Reported by OSS-Fuzz.


  Commit: 9f6b7fcd1b2faa89b03c32d5248c7370eaad77b7
      https://github.com/OpenSIPS/opensips/commit/9f6b7fcd1b2faa89b03c32d5248c7370eaad77b7
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M parser/contact/contact.c

  Log Message:
  -----------
  Fix skip_name() to not generate strings with bogus length.
Discovered by OSS-Fuzz.


  Commit: 4097ca5272232710126f253799551ff5b8e5aba7
      https://github.com/OpenSIPS/opensips/commit/4097ca5272232710126f253799551ff5b8e5aba7
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2023-03-23 (Thu, 23 Mar 2023)

  Changed paths:
    M modules/rtpproxy/rtpproxy.c

  Log Message:
  -----------
  Set POLLRDHUP on Linux when polling rtpproxy's socket to drain
any unclaimed data. This seems to be necessary on TCP sockets
otherwise poll() appears to hang indefinitely if rtpproxy has been
terminated despite timeout being set to 0 (i.e. don't block).

With this flag set the disconnect is properly detected and socket
is re-connected after configured timeout.


Compare: https://github.com/OpenSIPS/opensips/compare/371dd7d6a892...4097ca527223



More information about the Devel mailing list