Xi Wang a550604950 libceph: fix overflow in osdmap_apply_incremental()
On 32-bit systems, a large `pglen' would overflow `pglen*sizeof(u32)'
and bypass the check ceph_decode_need(p, end, pglen*sizeof(u32), bad).
It would also overflow the subsequent kmalloc() size, leading to
out-of-bounds write.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Reviewed-by: Alex Elder <elder@inktank.com>
2012-06-07 08:28:16 -05:00
..
2011-12-14 02:39:30 -05:00
2012-02-22 02:23:25 -05:00
2011-12-16 15:07:28 -05:00
2012-03-11 15:52:12 -07:00
2011-12-11 18:25:16 -05:00
2011-09-16 19:20:20 -04:00
2011-12-16 15:49:52 -05:00