Skip to content

Commit

Permalink
Fix off-by-one error in conversion pointers. Bug 801681, r=emk
Browse files Browse the repository at this point in the history
  • Loading branch information
smontagu committed Oct 18, 2012
1 parent 57163ca commit 094734b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion intl/uconv/ucvcn/nsHZToUnicode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ NS_IMETHODIMP nsHZToUnicode::ConvertNoBuff(
// and ' ' even in GB mode.
if (srcByte > 0x20 || HZ_ENCODING_STATE == HZ_STATE_ASCII) {
*aDest++ = UCS2_NO_MAPPING;
iDestlen++;
}
aSrc--;
(*aSrcLength)--;
iDestlen++;
i--;
break;
}
} else if (HZ_ENCODING_STATE == HZ_STATE_GB) {
Expand Down

0 comments on commit 094734b

Please sign in to comment.