[MXS-4569] Undefined behavior in simd_canonical.cc Created: 2023-03-30  Updated: 2023-04-18  Resolved: 2023-04-18

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 22.08.5, 23.02.1
Fix Version/s: 22.08.6, 23.02.2

Type: Bug Priority: Trivial
Reporter: markus makela Assignee: Niclas Antti
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-180

 Description   

colored textThe code uses _mm256_movemask_epi8 with an auto type. The intrinsic returns a signed integer which later on is used in a left shift. If the value is negative value, the behavior is undefined according to the C++11 standard.


Generated at Thu Feb 08 04:29:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.