vasild
commented at 4:01 pm on December 5, 2024:
contributor
The current code does not have a bug, but is implicitly casting -1 to 65535 and the sanitizer has no way to know whether we intend that or not.
0FUZZ=bitset src/test/fuzz/fuzz /tmp/fuz
12error: implicit conversion from type 'int' of value -1 (32-bit, signed)
3to type 'value_type' (aka 'unsigned short') changed the value to 65535
4(16-bit, unsigned)
56Base64: Qv7bX/8=
The current code does not have a bug, but is implicitly casting -1 to
65535 and the sanitizer has no way to know whether we intend that or
not.
```
FUZZ=bitset src/test/fuzz/fuzz /tmp/fuz
error: implicit conversion from type 'int' of value -1 (32-bit, signed)
to type 'value_type' (aka 'unsigned short') changed the value to 65535
(16-bit, unsigned)
Base64: Qv7bX/8=
```
edb41e4814
DrahtBot
commented at 4:01 pm on December 5, 2024:
contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2025-12-31 03:13 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me