Eric Blake
5a0beacc12
memory: make it safer to expand arrays
* src/util/memory.h (VIR_REALLOC_N): Update docs.
(VIR_EXPAND_N, VIR_SHRINK_N): New macros.
(virAlloc, virAllocN, virReallocN, virAllocVar, virFree): Add some
gcc attributes.
* src/util/memory.c (virExpandN, virShrinkN): New functions.
(virReallocN): Update docs.
* src/libvirt_private.syms: Export new helpers.
* docs/hacking.html.in: Prefer newer interfaces over
VIR_REALLOC_N, since uninitialized memory can bite us.
* HACKING: Regenerate.
2010-11-18 12:11:43 -07:00
..
2010-10-27 16:29:25 -06:00
2009-10-06 11:12:53 +01:00
2009-09-21 14:41:47 +01:00
2010-11-15 14:22:42 -05:00
2010-10-12 11:26:52 +01:00
2010-10-27 16:29:25 -06:00
2010-10-27 15:01:45 +11:00
2010-10-13 13:50:07 +02:00
2010-10-27 15:01:45 +11:00
2010-10-27 15:01:45 +11:00
2010-10-27 15:01:45 +11:00
2009-11-06 16:05:18 +01:00
2010-10-27 15:01:45 +11:00
2010-10-28 09:36:48 +11:00
2010-11-10 13:16:37 +01:00
2010-10-27 15:01:45 +11:00
2010-11-13 05:13:41 +11:00
2010-10-27 15:01:45 +11:00
2010-10-27 15:01:45 +11:00
2010-10-27 15:01:45 +11:00
2010-10-27 15:01:45 +11:00
2010-10-22 22:08:22 +02:00
2010-08-24 11:14:46 -06:00
2009-11-16 22:42:13 +01:00
2009-11-16 22:42:13 +01:00
2010-11-01 15:24:44 -06:00
2009-11-16 22:42:13 +01:00
2009-11-16 22:42:13 +01:00
2009-11-16 22:42:13 +01:00
2010-02-04 19:09:28 +01:00
2009-09-22 12:55:39 +02:00
2010-07-10 22:47:00 +10:00
2010-07-07 17:26:00 +02:00
2010-11-09 11:47:26 +00:00
2010-02-23 09:44:40 -05:00
2010-10-07 06:50:26 -04:00
2009-11-06 16:05:18 +01:00
2010-04-06 09:44:03 -04:00
2010-08-19 15:58:43 -06:00
2009-12-03 15:27:24 +01:00
2010-05-07 19:52:35 +02:00
2010-11-12 19:47:20 +01:00
2010-11-12 19:47:20 +01:00
2010-11-18 12:11:43 -07:00
2010-11-17 08:58:58 -07:00
2009-11-15 15:21:13 +01:00
2009-11-15 15:21:13 +01:00
2009-09-22 12:55:39 +02:00
2010-02-04 19:09:28 +01:00
2010-09-23 11:14:23 -06:00
2010-10-27 02:22:14 +11:00
2009-12-08 16:09:33 +01:00
2010-10-29 16:54:07 +02:00
2009-11-06 16:05:18 +01:00
2010-10-22 22:08:22 +02:00
2010-07-27 15:41:36 -04:00
2009-12-08 16:09:33 +01:00
2010-11-13 03:51:51 +11:00
2010-09-17 00:41:08 +10:00
2010-10-12 11:26:52 +01:00
2010-11-05 13:24:04 +00:00
2010-11-08 22:00:35 +01:00
2010-11-14 00:00:46 +11:00
2010-11-12 19:47:20 +01:00