ICU-66 0xbf may be confused as uninitialized memory.

X-SVN-Rev: 3663
This commit is contained in:
George Rhoten 2001-02-16 23:16:18 +00:00
parent 5b28ea2db1
commit 0ede57a764

View file

@ -46,7 +46,7 @@ addUTF8Test(TestNode** root)
static void TestCodeUnitValues()
{
static uint8_t codeunit[]={0x00, 0x65, 0x7e, 0x7f, 0xc0, 0xc4, 0xf0, 0xfd, 0x80, 0x81, 0xbc, 0xbf,};
static uint8_t codeunit[]={0x00, 0x65, 0x7e, 0x7f, 0xc0, 0xc4, 0xf0, 0xfd, 0x80, 0x81, 0xbc, 0xbe,};
int16_t i;
for(i=0; i<sizeof(codeunit)/sizeof(codeunit[0]); i++){
@ -170,7 +170,7 @@ static void TestGetChar()
static void TestNextPrevChar(){
static uint8_t input[]={0x61, 0xf0, 0x90, 0x90, 0x81, 0xc0, 0x80, 0xfd, 0xbf, 0xc0, 0x61, 0x81, 0x90, 0x90, 0xf0, 0x00};
static uint8_t input[]={0x61, 0xf0, 0x90, 0x90, 0x81, 0xc0, 0x80, 0xfd, 0xbe, 0xc0, 0x61, 0x81, 0x90, 0x90, 0xf0, 0x00};
static uint32_t result[]={
/*next_unsafe next_safe_ns next_safe_s prev_unsafe prev_safe_ns prev_safe_s*/
0x0061, 0x0061, 0x0061, 0x0000, 0x0000, 0x0000,
@ -180,8 +180,8 @@ static void TestNextPrevChar(){
0x81, 0x81, 0x81, 0x841, UTF8_ERROR_VALUE_1, UTF8_ERROR_VALUE_1,
0x00, 0x00, UTF8_ERROR_VALUE_2, 0x61, 0x61, 0x61,
0x80, 0x80, 0x80, 0xc0, 0xc0, 0xc0,
0xfd, UTF8_ERROR_VALUE_2, UTF8_ERROR_VALUE_2, 0x77f, UTF8_ERROR_VALUE_2, UTF8_ERROR_VALUE_2,
0xbf, 0xbf, 0xbf, 0xfd, 0xfd, 0xfd,
0xfd, UTF8_ERROR_VALUE_2, UTF8_ERROR_VALUE_2, 0x77e, UTF8_ERROR_VALUE_2, UTF8_ERROR_VALUE_2,
0xbe, 0xbe, 0xbe, 0xfd, 0xfd, 0xfd,
0x21, UTF8_ERROR_VALUE_1, UTF8_ERROR_VALUE_1, 0x00, 0x00, UTF8_ERROR_VALUE_2,
0x61, 0x61, 0x61, 0xc0, 0xc0, 0xc0,
0x81, 0x81, 0x81, 0x10401, 0x10401, 0x10401,