fix uninitialized map_len being used in munmap failure paths in load_library
[musl] / src / ctype / __ctype_tolower_loc.c
1 #include <ctype.h>
2 #include <inttypes.h>
3
4 static const int32_t table[] = {
5 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
6 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
7 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
8 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
9 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
10 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,
11 32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,
12 48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,
13 64,
14 'a','b','c','d','e','f','g','h','i','j','k','l','m',
15 'n','o','p','q','r','s','t','u','v','w','x','y','z',
16 91,92,93,94,95,96,
17 'a','b','c','d','e','f','g','h','i','j','k','l','m',
18 'n','o','p','q','r','s','t','u','v','w','x','y','z',
19 123,124,125,126,127,
20 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
21 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
22 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
23 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
24 };
25
26 static const int32_t *const ptable = table+128;
27
28 const int32_t **__ctype_tolower_loc(void)
29 {
30         return (void *)&ptable;
31 }