diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-02-01 02:36:16 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-02-01 02:36:16 +0100 |
commit | 80283e6aea8d9d8b48d4746b9b42883d803bee13 (patch) | |
tree | fea065a1c5d1cd0ed8b3078ff47853668df64670 /contrib/podman/0001-libpod-Add-pasta-networking-mode.patch | |
parent | 154216d483d5062e3c698ac240e6fc3fdccd9498 (diff) | |
download | passt-80283e6aea8d9d8b48d4746b9b42883d803bee13.tar passt-80283e6aea8d9d8b48d4746b9b42883d803bee13.tar.gz passt-80283e6aea8d9d8b48d4746b9b42883d803bee13.tar.bz2 passt-80283e6aea8d9d8b48d4746b9b42883d803bee13.tar.lz passt-80283e6aea8d9d8b48d4746b9b42883d803bee13.tar.xz passt-80283e6aea8d9d8b48d4746b9b42883d803bee13.tar.zst passt-80283e6aea8d9d8b48d4746b9b42883d803bee13.zip |
util: Avoid return of possibly truncated unsigned long in bitmap_isset()
Oops. If *word & BITMAP_BIT(bit) is bigger than an int (which is the
case for half of the possible bits of a bitmap on 64-bit archs), we'll
return that as an int, that is, zero, even if the bit at hand is set.
Just return zero or one there, no callers are interested in the actual
bitmap as return value.
Issue found as pasta wouldn't automatically detect some bound ports.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/podman/0001-libpod-Add-pasta-networking-mode.patch')
0 files changed, 0 insertions, 0 deletions