aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/attributes/mem_pool.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-07-24 16:03:38 +0200
committerTobias Brunner <tobias@strongswan.org>2013-07-25 11:28:01 +0200
commit116363e5c639be5e35483ad72ac275e5cfaee4eb (patch)
treea3d39d9051a9536da665667ae4b1a4560cca2bbc /src/libhydra/attributes/mem_pool.c
parentd7dc4fedd11154322b92eb41b2dd53f5a97d93ad (diff)
downloadstrongswan-116363e5c639be5e35483ad72ac275e5cfaee4eb.tar.bz2
strongswan-116363e5c639be5e35483ad72ac275e5cfaee4eb.tar.xz
array: Number of items in get_size() is unsigned
Otherwise, array->esize is promoted to int and if array->esize * num results in a value > 0x7fffffff the return value would be incorrect due the implicit sign extension when getting cast to size_t.
Diffstat (limited to 'src/libhydra/attributes/mem_pool.c')
0 files changed, 0 insertions, 0 deletions