[OpenSIPS-Devel] [OpenSIPS/opensips] 05b3d1: is_ws(): Play well with UndefinedBehaviorSanitizer...

Liviu Chircu noreply at github.com
Mon Oct 18 16:59:31 EST 2021


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 05b3d1dca7581733b8cee2ebc560892b3d44e42f
      https://github.com/OpenSIPS/opensips/commit/05b3d1dca7581733b8cee2ebc560892b3d44e42f
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-10-18 (Mon, 18 Oct 2021)

  Changed paths:
    M trim.h

  Log Message:
  -----------
  is_ws(): Play well with UndefinedBehaviorSanitizer (UBSan)

Avoid bitwise shifting by 31 of a signed integer type.  Practically,
this patch does not fix any bug on the widely used arches (the resulting
assembly is 100% the same on these), but at least it makes the code more
C-standards compliant.

OSS-Fuzz#39920

(cherry picked from commit 6581e0efeace51234932d97621aaa1636ad56cc3)





More information about the Devel mailing list