Pawel Jakub Dawidek
619f284195
In realloc(9), determine size of the original block based on
...
UMA_SLAB_MALLOC flag.
In some circumstances (I observed it when I was doing a lot of reallocs)
UMA_SLAB_MALLOC can be set even if us_keg != NULL.
If this is the case we have wonderful, silent data corruption, because less
data is copied to the newly allocated region than should be.
I'm not sure when this bug was introduced, it could be there undetected
for years now, as we don't have a lot of realloc(9) consumers and it was
hard to reproduce it...
...but what I know for sure, is that I don't want to know who introduce
the bug:) It took me two/three days to track it down (of course most of
the time I was looking for the bug in my own code).
2005-12-28 01:53:13 +00:00
..
2005-01-06 23:35:40 +00:00
2005-01-06 23:35:40 +00:00
2005-02-18 00:23:36 +00:00
2005-01-06 23:35:40 +00:00
2005-12-24 04:57:50 +00:00
2005-12-26 22:32:52 +00:00
2005-12-24 04:57:50 +00:00
2005-06-19 02:21:03 +00:00
2005-10-31 15:41:29 +00:00
2005-11-13 13:27:44 +00:00
2005-12-23 11:58:42 +00:00
2005-11-12 10:45:13 +00:00
2005-09-17 22:01:14 +00:00
2005-04-16 12:12:27 +00:00
2005-12-22 22:16:09 +00:00
2005-12-12 00:02:22 +00:00
2005-10-18 18:27:44 +00:00
2005-10-03 06:57:29 +00:00
2005-11-30 05:12:03 +00:00
2005-09-26 14:14:55 +00:00
2005-10-12 17:51:31 +00:00
2005-12-11 22:06:57 +00:00
2005-12-23 11:58:42 +00:00
2005-11-13 13:27:44 +00:00
2005-04-04 21:53:56 +00:00
2005-10-26 15:51:05 +00:00
2005-09-28 00:30:56 +00:00
2005-11-03 04:49:16 +00:00
2005-01-06 23:35:40 +00:00
2005-06-10 23:21:29 +00:00
2005-11-14 19:30:09 +00:00
2005-10-19 20:40:30 +00:00
2005-12-23 21:32:40 +00:00
2005-03-29 08:13:01 +00:00
2005-10-04 14:32:58 +00:00
2005-12-28 01:53:13 +00:00
2005-12-10 15:21:04 +00:00
2005-08-21 18:03:31 +00:00
2005-02-18 22:14:40 +00:00
2005-02-10 12:02:37 +00:00
2005-12-13 23:14:35 +00:00
2005-05-28 14:34:41 +00:00
2005-01-06 23:35:40 +00:00
2005-12-04 02:12:43 +00:00
2005-10-05 10:09:17 +00:00
2005-11-13 13:27:44 +00:00
2005-09-27 18:09:42 +00:00
2005-11-02 21:18:07 +00:00
2005-01-06 23:35:40 +00:00
2005-09-22 15:34:15 +00:00
2005-12-24 02:59:29 +00:00
2005-01-06 23:35:40 +00:00
2005-12-18 18:10:57 +00:00
2005-12-13 23:14:35 +00:00
2005-11-28 19:09:08 +00:00
2005-08-08 21:06:42 +00:00
2005-09-19 22:16:31 +00:00
2005-11-03 04:49:16 +00:00
2005-12-09 02:27:55 +00:00
2005-12-09 13:16:48 +00:00
2005-09-15 20:20:36 +00:00
2005-10-26 06:55:46 +00:00
2005-10-07 13:37:10 +00:00
2005-01-06 23:35:40 +00:00
2005-01-07 02:29:27 +00:00
2005-12-18 04:52:37 +00:00
2005-12-18 04:52:37 +00:00
2005-01-06 23:35:40 +00:00
2005-07-13 20:50:17 +00:00
2005-05-30 15:09:18 +00:00
2005-01-06 23:35:40 +00:00
2005-02-10 12:20:42 +00:00
2005-03-31 22:54:48 +00:00
2004-12-01 23:16:38 +00:00
2005-06-24 00:16:57 +00:00
2005-12-27 12:02:03 +00:00
2005-09-17 22:01:14 +00:00
2005-01-06 23:35:40 +00:00
2005-10-04 22:25:14 +00:00
2005-01-06 23:35:40 +00:00
2005-01-06 23:35:40 +00:00
2005-05-03 10:58:05 +00:00
2005-06-15 23:32:07 +00:00
2005-02-23 19:32:29 +00:00
2005-07-31 10:46:55 +00:00
2005-11-03 21:08:20 +00:00
2005-08-07 02:20:35 +00:00
2005-02-27 22:02:03 +00:00
2005-01-06 23:35:40 +00:00
2005-07-29 13:22:37 +00:00
2005-01-06 23:35:40 +00:00
2005-10-14 19:15:10 +00:00
2005-11-03 21:06:29 +00:00
2005-11-09 16:22:56 +00:00
2005-09-26 08:02:24 +00:00
2005-12-16 22:08:32 +00:00
2005-11-17 08:56:21 +00:00
2005-01-06 23:35:40 +00:00
2005-12-23 11:49:53 +00:00
2005-11-09 07:28:52 +00:00
2005-10-24 21:04:19 +00:00
2005-08-29 11:34:08 +00:00
2005-12-23 06:18:33 +00:00
2005-11-13 13:27:44 +00:00
2005-09-29 19:13:52 +00:00
2005-03-14 06:51:29 +00:00
2005-12-05 20:45:24 +00:00
2005-07-07 18:17:55 +00:00
2005-12-16 18:32:39 +00:00
2005-12-24 02:59:29 +00:00
2005-04-16 18:46:29 +00:00
2005-12-23 11:58:42 +00:00
2005-12-23 11:54:11 +00:00
2005-01-06 23:35:40 +00:00
2005-02-12 01:22:39 +00:00
2005-06-07 05:03:28 +00:00
2005-10-04 16:40:20 +00:00
2005-10-16 20:40:40 +00:00
2005-02-27 21:52:42 +00:00
2005-08-08 19:55:32 +00:00
2005-01-06 23:35:40 +00:00
2005-08-08 19:55:32 +00:00
2005-10-27 16:47:28 +00:00
2005-06-11 11:59:48 +00:00
2005-10-23 07:41:56 +00:00
2005-01-06 23:35:40 +00:00
2005-07-17 14:04:03 +00:00
2005-12-14 23:34:26 +00:00
2005-12-16 15:01:16 +00:00
2005-11-09 13:29:16 +00:00
2005-10-18 11:46:24 +00:00
2005-11-22 01:55:29 +00:00
2005-11-22 01:55:29 +00:00
2005-11-29 23:07:14 +00:00
2005-10-31 21:09:56 +00:00
2005-12-14 22:27:48 +00:00
2005-09-17 22:01:14 +00:00
2005-11-08 23:48:32 +00:00
2005-12-07 03:39:08 +00:00
2005-06-17 01:05:13 +00:00
2005-12-07 03:39:08 +00:00
2005-12-14 00:49:52 +00:00
2005-10-31 15:41:29 +00:00
2005-12-20 00:49:59 +00:00
2005-10-31 15:41:29 +00:00
2005-02-20 23:02:20 +00:00
2005-09-21 19:49:42 +00:00
2005-12-20 00:43:51 +00:00
2005-11-09 22:03:50 +00:00
2005-12-20 00:49:59 +00:00
2005-12-14 00:49:52 +00:00
2005-12-14 00:49:52 +00:00