Re: [PATCH] infiniband: ulp: srpt: Use flex array destination for memcpy()

From: Bart Van Assche
Date: Fri Sep 09 2022 - 12:13:54 EST


On 9/8/22 19:29, Hangyu Hua wrote:
In preparation for FORTIFY_SOURCE performing run-time destination buffer
bounds checking for memcpy(), specify the destination output buffer
explicitly, instead of asking memcpy() to write past the end of what looked
like a fixed-size object.

Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>