fix UBSAN: array-index-out-of-bounds

This commit is contained in:
pbrochart
2024-05-07 17:08:57 +02:00
parent 7ef8251854
commit 37600b1eaf
2 changed files with 6 additions and 6 deletions

View File

@@ -95,7 +95,7 @@ typedef struct _NDIS_802_11_FIXED_IEs {
typedef struct _NDIS_802_11_VARIABLE_IEs {
UCHAR ElementID;
UCHAR Length;
UCHAR data[1];
UCHAR data[];
} NDIS_802_11_VARIABLE_IEs, *PNDIS_802_11_VARIABLE_IEs;