Skip to content

media: venus: hfi_cmds: Replace one-element array with flexible-array member

Gustavo A. R. Silva linux-arm-msm linux-hardening linux-media lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: venus: hfi_cmds: Replace one-element array with flexible-array memberdrivers/media/platform/qcom/venus/hfi_cmds.c drivers/media/platform/qcom/venus/hfi_cmds.h+7 -72 replies
2/2media: venus: hfi_cmds: Use struct_size() helperdrivers/media/platform/qcom/venus/hfi_cmds.c+4 -42 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKees Cook
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [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].

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(-)
Signature · 1 line
2.34.1