Re: [PATCH for 7.3] conf: Fix heap corruption when hot-adding a lease

2021-05-03 Thread Jiri Denemark
On Sun, May 02, 2021 at 12:13:50 +0200, Peter Krempa wrote: > Commit 28a86993162f7d2f ( v6.9.0-179-g28a8699316 ) incorrectly replaced > VIR_EXPAND_N by g_renew. > > VIR_EXPAND_N has these two extra effects apart from reallocating memory: > > 1) The newly allocated memory is zeroed out > 2) The

[PATCH for 7.3] conf: Fix heap corruption when hot-adding a lease

2021-05-02 Thread Peter Krempa
Commit 28a86993162f7d2f ( v6.9.0-179-g28a8699316 ) incorrectly replaced VIR_EXPAND_N by g_renew. VIR_EXPAND_N has these two extra effects apart from reallocating memory: 1) The newly allocated memory is zeroed out 2) The number of elements in the array which is passed to VIR_EXPAND_N is