[OpenSIPS-Devel] [OpenSIPS/opensips] 730d1b: msg: remove extra bytes from malformed bodies

Razvan Crainea razvan at opensips.org
Tue Jan 9 03:48:58 EST 2018


  Branch: refs/heads/2.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 730d1b0aad7ce2883616d68895764ab989e326fb
      https://github.com/OpenSIPS/opensips/commit/730d1b0aad7ce2883616d68895764ab989e326fb
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2018-01-09 (Tue, 09 Jan 2018)

  Changed paths:
    M msg_translator.c

  Log Message:
  -----------
  msg: remove extra bytes from malformed bodies

This commit fixes an abort() generated by the message builder
when a malformed message is received that has a Content-Length lower
than the actual body.

Thanks go to Jon Hunter for reporting this issue and offering all
necessary information for debugging it.

Closes #1244

(cherry picked from commit fecb4b244c3cf84435af03db88bfd88002a69177)




More information about the Devel mailing list