Fix an array index out of bounds bug in iconv VIQR (Vietnamese) module.

PR:		185964
Submitted by:	Manuel Mausz <manuel-freebsd@mausz.at>
MFC after:	5 days
This commit is contained in:
tijl 2014-02-24 14:40:28 +00:00
parent 861cf70bc4
commit af66a98695

View File

@ -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)