[OpenSIPS-Devel] [OpenSIPS/opensips] 599b11: is_ws(): Play well with UndefinedBehaviorSanitizer...
Liviu Chircu
noreply at github.com
Mon Oct 18 17:01:32 EST 2021
Branch: refs/heads/3.1
Home: https://github.com/OpenSIPS/opensips
Commit: 599b11593be5b7fd93d74e3094b75755a39b94c2
https://github.com/OpenSIPS/opensips/commit/599b11593be5b7fd93d74e3094b75755a39b94c2
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