diff options
| author | Cédric Le Goater | 2022-06-30 09:21:13 +0200 |
|---|---|---|
| committer | Cédric Le Goater | 2022-06-30 09:21:13 +0200 |
| commit | 75dbf30be85f5163814b61aae87f93898d5fc53d (patch) | |
| tree | f82528964b9c80237f3c5163daf28406ecfdca06 /include | |
| parent | aspeed/hace: Accumulative mode supported (diff) | |
| download | qemu-75dbf30be85f5163814b61aae87f93898d5fc53d.tar.gz qemu-75dbf30be85f5163814b61aae87f93898d5fc53d.tar.xz qemu-75dbf30be85f5163814b61aae87f93898d5fc53d.zip | |
aspeed/smc: Fix potential overflow
Coverity warns that "ssi_transfer(s->spi, 0U) << 8 * i" might overflow
because the expression is evaluated using 32-bit arithmetic and then
used in a context expecting a uint64_t.
Fixes: Coverity CID 1487244
Message-Id: <20220628165512.1133590-1-clg@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
