From 6f21593bf66dfe59c737e3da095817b3e80049b8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 22 Nov 2013 21:43:47 +0000 Subject: (svn r26050) -Fix: possible, but currently untriggered, out of bounds access in strgen --- src/table/strgen_tables.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/table') diff --git a/src/table/strgen_tables.h b/src/table/strgen_tables.h index 811a8ffda..e6924e29c 100644 --- a/src/table/strgen_tables.h +++ b/src/table/strgen_tables.h @@ -154,6 +154,9 @@ struct PluralForm { const char *names; ///< Plural names }; +/** The maximum number of plurals. */ +static const int MAX_PLURALS = 5; + /** All plural forms used */ static const PluralForm _plural_forms[] = { { 2, "Two forms: special case for 1.", "\"1\" \"other\"" }, -- cgit v1.2.3-54-g00ecf