1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 07:59:00 +00:00
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
..
2009-10-06 11:12:53 +01:00
2010-10-13 13:50:07 +02:00
2009-11-06 16:05:18 +01:00
2010-08-24 11:14:46 -06:00
2010-11-01 15:24:44 -06:00
2009-09-22 12:55:39 +02:00
2009-12-03 15:27:24 +01:00
2010-05-07 19:52:35 +02:00
2009-09-22 12:55:39 +02:00
2010-02-04 19:09:28 +01:00
2010-10-29 16:54:07 +02:00
2010-07-27 15:41:36 -04:00
2010-11-05 13:24:04 +00:00