qemu/hw/i386/amd_iommu.c:188: possible bad shift ?
Bug #1630527 reported by
dcb
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| QEMU |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
qemu/hw/
Source code is
uint64_t mask = ((1 << length) - 1) << bitpos;
Maybe better code
uint64_t mask = ((1ULL << length) - 1) << bitpos;
To post a comment you must log in.

Thanks for reporting this bug! Looks like this has already been fixed by this commit here: git.qemu. org/?p= qemu.git; a=commitdiff; h=1d5b128cbeeab 638f772e
http://