summaryrefslogtreecommitdiff
path: root/deps/icu-small/source/common/ucmndata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'deps/icu-small/source/common/ucmndata.cpp')
-rw-r--r--deps/icu-small/source/common/ucmndata.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/icu-small/source/common/ucmndata.cpp b/deps/icu-small/source/common/ucmndata.cpp
index 251c7ba182..ba2310bb7a 100644
--- a/deps/icu-small/source/common/ucmndata.cpp
+++ b/deps/icu-small/source/common/ucmndata.cpp
@@ -77,7 +77,11 @@ typedef struct {
typedef struct {
uint32_t count;
uint32_t reserved;
- PointerTOCEntry entry[2]; /* Actual size is from count. */
+ /**
+ * Variable-length array declared with length 1 to disable bounds checkers.
+ * The actual array length is in the count field.
+ */
+ PointerTOCEntry entry[1];
} PointerTOC;