Ian Campbell
e5b16dba2e
tools: libxl: make it illegal to pass libxl__realloc(gc) a non-gc ptr
...
That is, if gc is not NOGC and ptr is not NULL then ptr must be
associated with a gc.
Currently in this case the new_ptr would not be registered with any
gc, which Coverity rightly points out (in various different places)
would be a memory leak.
It would also be possible to fix this by adding a libxl__ptr_add() at
the same point, however semantically it seems like a programming error
to gc-realloc a pointer which is not associated with the gc in
question, so treat it as such.
Compile tested only, this change could expose latent bugs.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com >
Acked-by: Wei Liu <wei.liu2@citrix.com >
2016-02-11 15:36:19 +00:00
..
2012-02-07 17:18:10 +00:00
2012-08-01 12:46:52 +01:00
2015-12-10 12:38:42 +00:00
2013-12-09 15:20:12 +00:00
2013-12-09 15:20:12 +00:00
2013-10-10 15:48:55 +01:00
2015-12-01 12:02:13 +00:00
2012-10-05 14:34:30 +01:00
2012-10-08 11:45:29 +01:00
2015-08-13 10:47:08 +01:00
2015-03-02 17:05:39 +00:00
2014-07-10 13:06:55 +01:00
2014-07-10 13:06:55 +01:00
2015-11-24 16:16:34 +00:00
2015-10-08 12:22:45 +01:00
2015-10-08 12:22:45 +01:00
2015-11-24 16:21:02 +00:00
2015-12-15 12:03:08 +00:00
2015-08-05 10:40:35 +01:00
2015-03-18 12:06:54 +00:00
2016-02-03 11:24:19 +00:00
2015-09-24 11:42:50 +01:00
2016-01-15 10:32:24 +00:00
2016-01-22 12:21:07 +00:00
2016-01-20 17:10:30 +00:00
2016-02-04 15:19:30 +00:00
2016-01-04 17:41:35 +00:00
2015-12-15 12:03:08 +00:00
2015-03-05 17:06:43 +00:00
2015-10-23 14:32:45 +01:00
2015-05-13 15:03:38 +01:00
2015-12-15 12:03:08 +00:00
2016-02-11 15:36:19 +00:00
2016-02-11 15:36:19 +00:00
2015-08-13 11:01:23 +01:00
2014-06-27 15:55:57 +01:00
2015-05-21 14:59:17 +01:00
2015-06-25 10:59:08 +01:00
2015-08-13 11:01:23 +01:00
2015-07-07 15:50:12 +01:00
2015-06-30 10:16:07 +01:00
2015-07-15 11:22:53 +01:00
2012-08-03 12:25:29 +01:00
2014-07-10 13:06:55 +01:00
2014-09-26 15:12:37 +01:00
2014-05-02 13:34:35 +01:00
2015-07-22 14:15:12 +02:00
2014-10-06 16:59:56 +01:00
2015-12-15 12:03:08 +00:00
2015-10-22 16:15:09 +01:00
2015-12-15 12:03:08 +00:00
2014-09-26 15:12:37 +01:00
2015-07-24 11:27:52 +01:00
2016-02-03 11:17:48 +00:00
2015-10-23 14:32:45 +01:00
2015-07-15 11:22:54 +01:00
2015-08-05 10:46:46 +01:00
2016-01-20 17:08:55 +00:00
2016-01-20 17:09:48 +00:00
2015-07-15 11:40:43 +01:00
2015-07-15 11:40:43 +01:00
2015-07-15 11:40:44 +01:00
2014-02-06 14:21:30 +00:00
2014-10-20 13:51:28 +01:00
2016-01-18 16:34:19 +00:00
2015-10-07 12:30:36 +01:00
2015-09-29 10:53:17 +01:00
2014-07-02 15:53:12 +01:00
2014-10-27 10:10:25 +00:00
2015-10-08 12:22:45 +01:00
2015-12-15 13:25:44 +00:00
2015-12-15 12:05:19 +00:00
2016-02-03 11:20:58 +00:00
2016-01-26 16:27:01 +00:00
2015-03-18 12:05:35 +00:00
2015-10-22 16:05:39 +01:00
2015-10-22 16:05:39 +01:00
2013-04-12 08:55:18 +01:00
2015-10-22 16:05:39 +01:00
2015-10-22 16:05:39 +01:00
2015-03-18 12:05:35 +00:00
2015-05-08 15:41:57 +01:00
2012-08-06 12:28:03 +01:00
2015-10-22 16:05:39 +01:00
2015-10-22 16:05:39 +01:00
2014-05-19 12:50:27 +01:00
2014-06-17 10:08:57 +01:00
2015-03-19 10:35:12 +00:00
2015-07-29 15:26:56 +01:00
2013-10-10 15:48:55 +01:00
2015-07-23 13:45:26 +01:00
2016-01-22 12:21:07 +00:00
2011-10-12 16:21:32 +01:00
2015-07-15 11:40:43 +01:00
2015-07-15 11:40:43 +01:00
2015-07-15 16:02:33 +01:00
2014-02-06 14:21:30 +00:00
2015-01-19 15:32:17 +00:00
2016-02-08 15:10:57 +00:00
2015-10-22 16:15:09 +01:00
2014-12-02 13:48:54 +00:00
2015-11-03 17:03:03 +00:00
2015-11-03 17:03:03 +00:00
2015-01-27 16:34:05 +00:00