Xi Wang
76aa542fb9
ceph: fix bounds check in ceph_decode_need and ceph_encode_need
...
Given a large n, the bounds check (*p + n > end) can be bypassed due to
pointer wraparound. A safer check is (n > end - *p).
[elder@dreamhost.com: inverted test and renamed ceph_has_room()]
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Reviewed-by: Alex Elder <elder@dreamhost.com>
2012-05-14 12:12:27 -05:00
..
2012-02-23 22:07:55 +00:00
2012-01-17 09:54:08 -05:00
2012-05-14 12:12:27 -05:00
2012-05-07 15:39:35 -07:00
2012-01-13 09:32:20 +10:30
2012-02-03 19:03:44 +01:00
2012-01-22 15:08:43 -05:00
2012-02-13 20:39:05 -05:00
2012-02-04 07:17:47 -08:00
2012-01-16 14:01:23 +01:00
2012-02-21 13:29:06 +01:00
2012-01-14 12:26:41 -08:00
2012-02-10 14:24:31 -08:00
2012-01-17 04:35:20 -05:00
2012-01-18 15:51:48 -08:00
2012-01-17 16:17:03 -05:00
2012-02-06 15:15:20 -08:00
2012-01-13 08:15:33 +01:00
2012-02-18 15:24:05 -08:00
2012-02-07 07:51:30 +01:00
2012-01-14 18:36:33 -08:00
2012-02-08 20:03:14 +01:00
2012-02-26 09:44:55 -08:00
2012-01-13 09:32:20 +10:30
2012-01-18 15:51:48 -08:00
2012-01-12 20:13:11 -08:00
2012-03-04 15:51:42 -08:00
2012-01-24 10:47:41 -08:00
2012-02-20 19:46:36 +11:00
2012-02-08 09:19:42 +01:00
2012-01-12 20:13:04 -08:00
2012-01-29 20:35:52 +01:00
2012-02-13 20:45:38 -05:00
2012-03-02 10:38:33 +01:00
2012-01-11 09:23:05 +00:00
2012-02-01 09:13:11 -08:00
2012-01-12 20:13:08 -08:00
2012-02-02 14:35:12 -05:00
2012-02-21 16:56:45 -05:00
2012-01-24 15:51:00 -05:00
2012-01-11 12:56:06 -08:00
2012-01-13 09:32:18 +10:30
2012-02-15 09:45:53 +01:00
2012-01-12 20:13:03 -08:00
2012-01-23 08:38:48 -08:00
2012-01-19 16:17:35 +11:00
2012-03-05 15:49:42 -08:00
2012-01-17 15:40:51 -08:00
2012-01-12 20:13:03 -08:00
2012-02-02 15:43:40 -08:00
2012-03-05 15:49:43 -08:00
2012-01-23 08:38:47 -08:00
2012-01-23 08:38:47 -08:00
2012-01-13 10:12:23 -08:00
2012-01-12 20:13:10 -08:00
2012-01-12 20:13:03 -08:00
2012-01-11 19:12:10 -08:00
2012-01-12 20:13:10 -08:00
2012-01-20 17:38:58 +00:00
2012-01-13 09:32:14 +10:30
2012-01-13 09:32:28 +10:30
2012-02-02 00:23:14 +11:00
2012-02-03 18:50:34 -05:00
2012-02-15 13:10:15 -07:00
2012-01-12 20:13:06 -08:00
2012-01-12 20:13:07 -08:00
2012-01-12 20:13:10 -08:00
2012-01-11 18:50:26 -08:00
2012-03-04 09:34:15 -08:00
2012-01-27 12:06:39 +01:00
2012-01-12 15:23:04 -08:00
2012-01-12 20:05:28 -08:00
2012-02-04 22:23:17 +01:00
2012-01-12 20:13:13 -08:00
2012-02-01 16:53:46 +08:00
2012-01-17 16:41:31 -08:00
2012-01-12 13:09:09 +01:00
2012-01-12 20:13:12 -08:00
2012-03-02 11:38:15 -08:00
2012-01-22 15:08:46 -05:00
2012-01-12 20:13:06 -08:00
2012-02-21 16:56:45 -05:00
2012-03-05 15:49:42 -08:00
2012-01-14 18:36:33 -08:00
2012-01-14 13:05:21 -08:00
2012-02-01 22:23:53 +05:30
2012-01-23 08:38:48 -08:00
2012-02-24 11:42:50 -08:00
2012-02-23 16:50:45 -05:00
2012-01-22 15:08:44 -05:00
2012-01-19 23:25:33 +01:00
2012-01-23 08:38:48 -08:00
2012-02-21 17:24:20 -08:00
2012-02-28 15:06:33 -05:00
2012-01-23 03:15:25 -05:00
2012-01-17 10:30:38 -08:00
2012-01-24 12:25:14 -08:00
2012-01-15 12:49:56 -08:00
2012-01-12 15:44:42 +10:30
2012-01-12 15:44:44 +10:30
2012-03-02 10:51:00 +01:00
2012-01-10 16:59:59 -08:00