]> git.proxmox.com Git - libgit2.git/commit
pool: Correct overflow checks
authorVicent Marti <tanoku@gmail.com>
Fri, 13 Dec 2013 11:41:22 +0000 (12:41 +0100)
committerVicent Marti <tanoku@gmail.com>
Fri, 13 Dec 2013 11:41:22 +0000 (12:41 +0100)
commit437f7d69b22324d20fe833aa53119885733029c2
tree37721b5fecf60604a157085a3a1c979531b0bda8
parentce33645ff32d68dfd89867468f58fd9c245c26ff
pool: Correct overflow checks

Ok, scrap the previous commit. This is the right overflow check that
takes care of 64 bit overflow **and** 32-bit overflow, which needs to be
considered because the pool malloc can only allocate 32-bit elements in
one go.
src/pool.c
tests/core/pool.c