[OpenSIPS-Devel] [OpenSIPS/opensips] a96190: ut.h: fix off-by-one check in str_casematch

Răzvan Crainea noreply at github.com
Wed Oct 6 14:13:16 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: a96190e97e9bd073740c1959678884bf6595cd04
      https://github.com/OpenSIPS/opensips/commit/a96190e97e9bd073740c1959678884bf6595cd04
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2021-10-06 (Wed, 06 Oct 2021)

  Changed paths:
    M ut.h

  Log Message:
  -----------
  ut.h: fix off-by-one check in str_casematch

when the string length is 0, the first char of the string would have
been checked, resulting in a possible memory corruption





More information about the Devel mailing list