Bugzilla bug #54195: extended the 'uc' array to 256 elements because NSPRPUB_CLIENT_BRANCH
authorwtc%netscape.com
Fri, 06 Oct 2000 04:24:53 +0000
branchNSPRPUB_CLIENT_BRANCH
changeset 1574 6f24296783d7482650279d624efe020dc67e6b42
parent 1569 46f0a8da37c7ce34f8811bb88bd3b3a0bc85a0c5
child 1578 dbaa45587d0bfd1ce705bfc34d242cfc6122d913
push idunknown
push userunknown
push dateunknown
bugs54195
Bugzilla bug #54195: extended the 'uc' array to 256 elements because it may be indexed by an 8-bit character. Thanks to Naoki Hotta <nhotta@netscape.com> for the fix. (NSPRPUB_CLIENT_BRANCH)
lib/libc/src/strccmp.c
--- a/lib/libc/src/strccmp.c
+++ b/lib/libc/src/strccmp.c
@@ -30,17 +30,33 @@ static const unsigned char uc[] =
     '8',    '9',    ':',    ';',    '<',    '=',    '>',    '?',
     '@',    'A',    'B',    'C',    'D',    'E',    'F',    'G',
     'H',    'I',    'J',    'K',    'L',    'M',    'N',    'O',
     'P',    'Q',    'R',    'S',    'T',    'U',    'V',    'W',
     'X',    'Y',    'Z',    '[',    '\\',   ']',    '^',    '_',
     '`',    'A',    'B',    'C',    'D',    'E',    'F',    'G',
     'H',    'I',    'J',    'K',    'L',    'M',    'N',    'O',
     'P',    'Q',    'R',    'S',    'T',    'U',    'V',    'W',
-    'X',    'Y',    'Z',    '{',    '|',    '}',    '~',    '\177'
+    'X',    'Y',    'Z',    '{',    '|',    '}',    '~',    '\177',
+    '\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207',
+    '\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217',
+    '\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227',
+    '\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237',
+    '\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247',
+    '\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257',
+    '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',
+    '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277',
+    '\300', '\301', '\302', '\303', '\304', '\305', '\306', '\307',
+    '\310', '\311', '\312', '\313', '\314', '\315', '\316', '\317',
+    '\320', '\321', '\322', '\323', '\324', '\325', '\326', '\327',
+    '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337',
+    '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347',
+    '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357',
+    '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',
+    '\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377'
 };
 
 PR_IMPLEMENT(PRIntn)
 PL_strcasecmp(const char *a, const char *b)
 {
     const unsigned char *ua = (const unsigned char *)a;
     const unsigned char *ub = (const unsigned char *)b;