nuttx/mm/ubsan
hanzhijian 6f175b0997 mm/ubsan: fix signed inline value decoding
Restore the explicit signed conversion and parenthesize the sign-bit test
so it is evaluated before the bitwise AND.  Without this, operator
precedence makes the decoder test bit zero instead of the sign bit and
negative inline operands are reported as large positive values.

Build the width mask without shifting by the full width of uint64_t.
This avoids recursively invoking UBSan while decoding a 64-bit inline
operand.

Signed-off-by: hanzhijian <hanzhijian@zepp.com>
2026-07-30 12:52:17 +02:00
..
CMakeLists.txt mm: migrate to SPDX identifier 2024-09-13 08:49:05 +08:00
Make.defs mm: migrate to SPDX identifier 2024-09-13 08:49:05 +08:00
ubsan.c mm/ubsan: fix signed inline value decoding 2026-07-30 12:52:17 +02:00
ubsan.h mm: migrate to SPDX identifier 2024-09-13 08:49:05 +08:00