KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
83 stars 5 forks source link

Replace one-element array flex-array member in drivers/media/platform/qcom/venus/hfi_msgs.h #294

Closed GustavoARSilva closed 9 months ago

GustavoARSilva commented 1 year ago

diff --git a/drivers/media/platform/qcom/venus/hfi_cmds.h b/drivers/media/platform/qcom/venus/hfi_cmds.h
index dd9c5066442d..55dd73ff073b 100644
--- a/drivers/media/platform/qcom/venus/hfi_cmds.h
+++ b/drivers/media/platform/qcom/venus/hfi_cmds.h
@@ -82,7 +82,7 @@ struct hfi_sys_set_buffers_pkt {
        u32 buffer_type;
        u32 buffer_size;
        u32 num_buffers;
-       u32 buffer_addr[1];
+       u32 buffer_addr[];
 };

 struct hfi_sys_ping_pkt {
@@ -177,7 +177,7 @@ struct hfi_session_empty_buffer_uncompressed_plane1_pkt {
        u32 filled_len;
        u32 offset;
        u32 packet_buffer2;
-       u32 data[1];
+       u32 data[];
 };

 struct hfi_session_empty_buffer_uncompressed_plane2_pkt {
@@ -186,7 +186,7 @@ struct hfi_session_empty_buffer_uncompressed_plane2_pkt {
        u32 filled_len;
        u32 offset;
        u32 packet_buffer3;
-       u32 data[1];
+       u32 data[];
 };

 struct hfi_session_fill_buffer_pkt {
@@ -227,7 +227,7 @@ struct hfi_session_release_buffer_pkt {
        u32 extradata_size;
        u32 response_req;
        u32 num_buffers;
-       u32 buffer_info[1];
+       u32 buffer_info[];
 };

 struct hfi_session_release_resources_pkt {
kees commented 9 months ago

Fixed in commits 380f3bbd9562dc93be2e3cadc329b15284fbedae, 51bb3989c2a1c49b8cebdb753a0ab28d5a546b52, a0eadbe92610cfaa0f5d519778c0297564e6a3a2, 40c02059645890d0525b693fc5b80d4c4db8d205, 4c99885d592ea53f9d4872595858e3f14eaf0823.