Line | Source Code | Coverage |
---|
1 | | - |
2 | | - |
3 | extern int | - |
4 | pcre16_fullinfo(const pcre16 *argument_re, const pcre16_extra *extra_data, | - |
5 | int what, void *where) | - |
6 | | - |
7 | { | - |
8 | const real_pcre16 *re = (const real_pcre16 *)argument_re; | - |
9 | const pcre_study_data *study = ((void *)0); | - |
10 | | - |
11 | if (re == ((void *)0) || where == ((void *)0)) return (-2); never executed: return (-2); partially evaluated: re == ((void *)0) no Evaluation Count:0 | yes Evaluation Count:754 |
partially evaluated: where == ((void *)0) no Evaluation Count:0 | yes Evaluation Count:754 |
| 0-754 |
12 | | - |
13 | if (extra_data != ((void *)0) && (extra_data->flags & 0x0001) != 0) partially evaluated: extra_data != ((void *)0) no Evaluation Count:0 | yes Evaluation Count:754 |
never evaluated: (extra_data->flags & 0x0001) != 0 | 0-754 |
14 | study = (const pcre_study_data *)extra_data->study_data; never executed: study = (const pcre_study_data *)extra_data->study_data; | 0 |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | if (re->magic_number != 0x50435245UL) partially evaluated: re->magic_number != 0x50435245UL no Evaluation Count:0 | yes Evaluation Count:754 |
| 0-754 |
22 | return re->magic_number == 0x45524350UL? | 0 |
23 | (-29):(-4); never executed: return re->magic_number == 0x45524350UL? (-29):(-4); | 0 |
24 | | - |
25 | | - |
26 | | - |
27 | if ((re->flags & 0x0002) == 0) return (-28); partially evaluated: (re->flags & 0x0002) == 0 no Evaluation Count:0 | yes Evaluation Count:754 |
never executed: return (-28); | 0-754 |
28 | | - |
29 | switch (what) | - |
30 | { | - |
31 | case 0: | - |
32 | *((unsigned long int *)where) = re->options & (0x00000001|0x00000008|0x00000010|0x00000002| 0x00000004|0x00000020|0x00000040|0x00000200|0x00000800| 0x00001000|0x00002000|0x00004000|0x00040000| 0x00080000|(0x00100000|0x00200000|0x00400000| 0x00500000)|0x00800000|0x01000000| 0x02000000|0x20000000|0x04000000); | - |
33 | break; executed: break; Execution Count:357 | 357 |
34 | | - |
35 | case 1: | - |
36 | *((size_t *)where) = re->size; | - |
37 | break; | 0 |
38 | | - |
39 | case 10: | - |
40 | *((size_t *)where) = (study == ((void *)0))? 0 : study->size; never evaluated: (study == ((void *)0)) | 0 |
41 | break; | 0 |
42 | | - |
43 | case 17: | - |
44 | | - |
45 | *((size_t *)where) = | - |
46 | (extra_data != ((void *)0) && never evaluated: extra_data != ((void *)0) | 0 |
47 | (extra_data->flags & 0x0040) != 0 && never evaluated: (extra_data->flags & 0x0040) != 0 | 0 |
48 | extra_data->executable_jit != ((void *)0))? never evaluated: extra_data->executable_jit != ((void *)0) | 0 |
49 | _pcre16_jit_get_size(extra_data->executable_jit) : 0; | - |
50 | | - |
51 | | - |
52 | | - |
53 | break; | 0 |
54 | | - |
55 | case 2: | - |
56 | *((int *)where) = re->top_bracket; | - |
57 | break; executed: break; Execution Count:357 | 357 |
58 | | - |
59 | case 3: | - |
60 | *((int *)where) = re->top_backref; | - |
61 | break; | 0 |
62 | | - |
63 | case 4: | - |
64 | *((int *)where) = | - |
65 | ((re->flags & 0x0010) != 0)? re->first_char : never evaluated: ((re->flags & 0x0010) != 0) | 0 |
66 | ((re->flags & 0x0100) != 0)? -1 : -2; | - |
67 | break; | 0 |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | case 5: | - |
73 | *((const pcre_uint8 **)where) = | - |
74 | (study != ((void *)0) && (study->flags & 0x0001) != 0)? never evaluated: study != ((void *)0) never evaluated: (study->flags & 0x0001) != 0 | 0 |
75 | ((const pcre_study_data *)extra_data->study_data)->start_bits : ((void *)0); | - |
76 | break; | 0 |
77 | | - |
78 | case 15: | - |
79 | *((int *)where) = | - |
80 | (study != ((void *)0) && (study->flags & 0x0002) != 0)? never evaluated: study != ((void *)0) never evaluated: (study->flags & 0x0002) != 0 | 0 |
81 | (int)(study->minlength) : -1; | - |
82 | break; | 0 |
83 | | - |
84 | case 16: | - |
85 | *((int *)where) = extra_data != ((void *)0) && never evaluated: extra_data != ((void *)0) | 0 |
86 | (extra_data->flags & 0x0040) != 0 && never evaluated: (extra_data->flags & 0x0040) != 0 | 0 |
87 | extra_data->executable_jit != ((void *)0); never evaluated: extra_data->executable_jit != ((void *)0) | 0 |
88 | break; | 0 |
89 | | - |
90 | case 6: | - |
91 | *((int *)where) = | - |
92 | ((re->flags & 0x0040) != 0)? re->req_char : -1; never evaluated: ((re->flags & 0x0040) != 0) | 0 |
93 | break; | 0 |
94 | | - |
95 | case 7: | - |
96 | *((int *)where) = re->name_entry_size; | - |
97 | break; executed: break; Execution Count:12 | 12 |
98 | | - |
99 | case 8: | - |
100 | *((int *)where) = re->name_count; | - |
101 | break; executed: break; Execution Count:12 | 12 |
102 | | - |
103 | case 9: | - |
104 | *((const pcre_uchar **)where) = (const pcre_uchar *)re + re->name_table_offset; | - |
105 | break; executed: break; Execution Count:12 | 12 |
106 | | - |
107 | case 11: | - |
108 | *((const pcre_uint8 **)where) = (const pcre_uint8 *)(_pcre16_default_tables); | - |
109 | break; executed: break; Execution Count:4 | 4 |
110 | | - |
111 | | - |
112 | | - |
113 | | - |
114 | case 12: | - |
115 | *((int *)where) = (re->flags & 0x0200) == 0; | - |
116 | break; | 0 |
117 | | - |
118 | case 13: | - |
119 | *((int *)where) = (re->flags & 0x0400) != 0; | - |
120 | break; | 0 |
121 | | - |
122 | case 14: | - |
123 | *((int *)where) = (re->flags & 0x0800) != 0; | - |
124 | break; | 0 |
125 | | - |
126 | default: return (-3); never executed: return (-3); | 0 |
127 | } | - |
128 | | - |
129 | return 0; executed: return 0; Execution Count:754 | 754 |
130 | } | - |
131 | | - |
| | |