Messages in this thread |  | | Date | Tue, 16 May 2023 17:14:04 -0600 | | From | "Gustavo A. R. Silva" <> | | Subject | [PATCH 0/2][next] media: venus: hfi_cmds: Replace one-element array with flexible-array member |
| |
Hi!
This series aims to replace one-element arrays with flexible-array members in struct hfi_session_set_buffers_pkt.
This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines on memcpy() and help us make progress towards globally enabling -fstrict-flex-arrays=3 [1].
Link: https://github.com/KSPP/linux/issues/79 Link: https://github.com/KSPP/linux/issues/160 Link: https://github.com/KSPP/linux/issues/292 Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1]
Gustavo A. R. Silva (2): media: venus: hfi_cmds: Replace one-element array with flexible-array member media: venus: hfi_cmds: Use struct_size() helper
drivers/media/platform/qcom/venus/hfi_cmds.c | 16 ++++++++-------- drivers/media/platform/qcom/venus/hfi_cmds.h | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-)
-- 2.34.1
|  |