Re: [RFC, WIP, v6 05/10] media: vidtv: add wrappers for memcpy and memset

2020-06-01 Thread Shuah Khan
Hi Daniel, On 5/20/20 1:03 AM, Daniel W. S. Almeida wrote: From: "Daniel W. S. Almeida" A lot of code in this driver is for serializing structures. This is error prone. Therefore, prevent buffer overflows by wrapping memcpy and memset, comparing the requested length against the buffer size.

[RFC, WIP, v6 05/10] media: vidtv: add wrappers for memcpy and memset

2020-05-20 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" A lot of code in this driver is for serializing structures. This is error prone. Therefore, prevent buffer overflows by wrapping memcpy and memset, comparing the requested length against the buffer size. Signed-off-by: Daniel W. S. Almeida --- .../media/test-drive