Commit 32c8dda
[AV1][Coverity] Fix INTEGER_OVERFLOW CID 4398015 in order_hint_bits_minus1
GetBits(3) returns uint32_t. In the ternary expression, C++ type
promotion makes the result type uint32_t, converting -1 to 4294967295U
before assignment to int32_t order_hint_bits_minus1. Use
static_cast<int32_t> to preserve signed semantics.
Coverity CID: 43980151 parent c657f1d commit 32c8dda
1 file changed
Lines changed: 1 addition & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1421 | 1421 | | |
1422 | 1422 | | |
1423 | 1423 | | |
1424 | | - | |
| 1424 | + | |
1425 | 1425 | | |
1426 | 1426 | | |
1427 | 1427 | | |
| |||
0 commit comments