Fix an off-by-one error with undefined codepoints. Bug 564679, r=Masatoshi Kimura <VYV03354@nifty.ne.jp>
This commit is contained in:
@@ -236,11 +236,12 @@ nsresult nsUnicodeDecodeHelper::ConvertByFastTable(
|
||||
}
|
||||
|
||||
for (; src<srcEnd;) {
|
||||
*dest = aFastTable[*src++];
|
||||
*dest = aFastTable[*src];
|
||||
if (*dest == 0xfffd && aErrorSignal) {
|
||||
res = NS_ERROR_ILLEGAL_INPUT;
|
||||
break;
|
||||
}
|
||||
src++;
|
||||
dest++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user