]> git.ipfire.org Git - thirdparty/systemd.git/commit
bitmap: avoid 32bit integer overflow in shift 611/head
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 17 Jul 2015 10:19:06 +0000 (12:19 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 17 Jul 2015 10:19:06 +0000 (12:19 +0200)
commita933570dea029fbb25f6b62d46b7462366ed1430
treed0cee794b0876aac40e128e33fdc5a49e54a183c
parent22cedfe15fda59106b890ae2c646de96aa18a5eb
bitmap: avoid 32bit integer overflow in shift

We really must use 64bit integers to calculate long-long shifts.
Otherwise, we will never get higher masks than 2^31.
src/basic/bitmap.c