summary refs log tree commit diff stats
path: root/results/scraper/launchpad-without-comments/1630527
blob: 88b79cb0ffc043610fe7c77193b55d2ef89a8efb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
qemu/hw/i386/amd_iommu.c:188: possible bad shift ?

qemu/hw/i386/amd_iommu.c:188]: (error) Shifting 32-bit value by 64 bits is undefined behaviour

Source code is

    uint64_t mask = ((1 << length) - 1) << bitpos;

Maybe better code

    uint64_t mask = ((1ULL << length) - 1) << bitpos;