refactor: re-enable UBSan implicit-sign-change in serialize.h

Made every signed/unsigned conversion in the serialization helpers explicit so the UBSan `implicit-sign-change` check passes and the `serialize.h` suppression can be dropped.

For consistency, a few other simple changes were also applied to the serialization helpers:
* remove redundant `inline` on function templates;
* unify formatting to make the differences between similar methods obvious.
This commit is contained in:
Lőrinc committed 2025-05-14 15:41:20 +02:00
1 parent 5827e93507
commit 516f0689b5
2 files changed
+19 -20

No files matched your search

-1
View File
@@ -65,7 +65,6 @@ implicit-integer-sign-change:TxConfirmStats::removeTx
implicit-integer-sign-change:prevector.h
implicit-integer-sign-change:verify_flags
implicit-integer-sign-change:EvalScript
implicit-integer-sign-change:serialize.h
implicit-signed-integer-truncation:crypto/
implicit-unsigned-integer-truncation:crypto/
shift-base:arith_uint256.cpp