]> git.ipfire.org Git - thirdparty/chrony.git/commit
array: allow arrays larger than 4 GB
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 8 Jun 2015 12:43:16 +0000 (14:43 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 8 Jun 2015 12:43:16 +0000 (14:43 +0200)
commit70b108ab69d3f084b31bf0f32b9095d154161520
treedece9d48b701f4efed35fd0d05621af089478952
parent08b152d6a2a7d675b2a4fc69c0248e66fec45488
array: allow arrays larger than 4 GB

It's not expected we will work with such large arrays anytime soon, but
better be safe than sorry.

Also, limit the number of elements to 2^31-1 to prevent infinite loop in
the calculation of allocated elements.
array.c