Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3901)

Unified Diff: icu4c/source/common/ucmndata.cpp

Issue 335150043: Refreshing Number Parsing: ICU4J Base URL: svn+icussh://source.icu-project.org/repos/icu/trunk/
Patch Set: Replying to Andy feedback round one. See commit message. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu4c/source/common/ucmndata.h ('k') | icu4c/source/common/ustr_wcs.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu4c/source/common/ucmndata.cpp
===================================================================
--- icu4c/source/common/ucmndata.cpp (revision 40724)
+++ icu4c/source/common/ucmndata.cpp (working copy)
@@ -77,7 +77,11 @@
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;
« no previous file with comments | « icu4c/source/common/ucmndata.h ('k') | icu4c/source/common/ustr_wcs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b