From: Jérémie Galarneau Date: Sat, 27 May 2017 10:26:27 +0000 (-0400) Subject: Fix: space left in buffer may be uninitilized on capacity increase X-Git-Tag: v2.11.0-rc1~558 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=1c6def05e37f4a8a828a94aa0ca0e6236877f26f;hp=1c6def05e37f4a8a828a94aa0ca0e6236877f26f Fix: space left in buffer may be uninitilized on capacity increase In the following case of dynamic buffer resize: |---------|---------------------|------------------------| ^ ^ ^ (a) original_size (b) original_capacity (c) new_capacity The code (correctly) assumes that the space between b and c is zero-initialized. However, the space between a and b will be left uninitialized. Signed-off-by: Jérémie Galarneau ---