Re: [PATCH][next] ALSA: vmaster: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Takashi Iwai
On Thu, 30 Jul 2020 15:12:33 +0200, Gustavo A. R. Silva wrote: > > > > On 7/30/20 03:41, Takashi Iwai wrote: > > On Thu, 30 Jul 2020 00:18:29 +0200, > > Gustavo A. R. Silva wrote: > >> > >> Make use of the flex_array_size() helper to calculate the size of a > >> flexible array member within an

Re: [PATCH][next] ALSA: vmaster: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Gustavo A. R. Silva
On 7/30/20 03:41, Takashi Iwai wrote: > On Thu, 30 Jul 2020 00:18:29 +0200, > Gustavo A. R. Silva wrote: >> >> Make use of the flex_array_size() helper to calculate the size of a >> flexible array member within an enclosing structure. >> >> This helper offers defense-in-depth against potential

Re: [PATCH][next] ALSA: vmaster: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Takashi Iwai
On Thu, 30 Jul 2020 00:18:29 +0200, Gustavo A. R. Silva wrote: > > Make use of the flex_array_size() helper to calculate the size of a > flexible array member within an enclosing structure. > > This helper offers defense-in-depth against potential integer overflows > and makes it explicitly

[PATCH][next] ALSA: vmaster: Use flex_array_size() helper in memcpy()

2020-07-29 Thread Gustavo A. R. Silva
Make use of the flex_array_size() helper to calculate the size of a flexible array member within an enclosing structure. This helper offers defense-in-depth against potential integer overflows and makes it explicitly clear that we are dealing with a flexible array member. Signed-off-by: Gustavo