From af66a9869573710f245ccb873de3ff252dc87a46 Mon Sep 17 00:00:00 2001 From: tijl Date: Mon, 24 Feb 2014 14:40:28 +0000 Subject: [PATCH] Fix an array index out of bounds bug in iconv VIQR (Vietnamese) module. PR: 185964 Submitted by: Manuel Mausz MFC after: 5 days --- lib/libiconv_modules/VIQR/citrus_viqr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libiconv_modules/VIQR/citrus_viqr.c b/lib/libiconv_modules/VIQR/citrus_viqr.c index b8a881defc20..0ae6214a0096 100644 --- a/lib/libiconv_modules/VIQR/citrus_viqr.c +++ b/lib/libiconv_modules/VIQR/citrus_viqr.c @@ -457,7 +457,7 @@ _citrus_VIQR_encoding_module_init(_VIQREncodingInfo * __restrict ei, return (errnum); } } - for (i = 0;; ++i) { + for (i = 0; i < mnemonic_ext_size; ++i) { p = &mnemonic_ext[i]; n = strlen(p->name); if (ei->mb_cur_max < n)