ICU-4910 MungeInput: don't go past the end of fInputBytes.

X-SVN-Rev: 20332
This commit is contained in:
Eric Mader 2006-09-15 04:14:47 +00:00
parent 190c5f0c7c
commit e74d65b0fd

View File

@ -364,7 +364,7 @@ public class CharsetDetector {
// Count how many total '<' and illegal (nested) '<' occur, so we can make some
// guess as to whether the input was actually marked up at all.
if (fStripTags) {
for (srci=0; srci<fRawLength; srci++) {
for (srci = 0; srci < fRawLength && dsti < fInputBytes.length; srci++) {
b = fRawInput[srci];
if (b == (byte)'<') {
if (inMarkup) {