line |
true |
false |
branch |
56
|
0 |
17 |
if (*g_config == 'Y') |
61
|
0 |
17 |
if (strncmp(g_config, config, strlen(PSCORE_CONFIG)) != 0) |
69
|
0 |
17 |
if (osdepTimeOpen() < 0) |
74
|
0 |
17 |
if (osdepEntropyOpen() < 0) |
105
|
14 |
0 |
if (*g_config == 'Y') |
135
|
255402 |
11783 |
while (len > 0) |
181
|
0 |
0 |
for (; len > 0; len--) |
183
|
0 |
0 |
if (*b > 31 && *b < 127) |
|
0 |
0 |
if (*b > 31 && *b < 127) |
202
|
0 |
0 |
if (tag) |
211
|
0 |
0 |
for (i = 0; i < l; i++) |
213
|
0 |
0 |
if (!(i & 0xF)) |
215
|
0 |
0 |
if (tag) |
217
|
0 |
0 |
if (i != 0) |
233
|
0 |
0 |
if (tag) |
242
|
0 |
0 |
if (tag) |
247
|
0 |
0 |
for (; i < 16; i++) |
278
|
0 |
777 |
if (listLen == 1) |
283
|
0 |
777 |
if (litems == NULL) |
289
|
777 |
777 |
while (listLen > 0) |
293
|
0 |
777 |
if (litems == NULL) |
296
|
0 |
0 |
if (litems == NULL) |
305
|
14428 |
0 |
while (*list != separator && *list != '\0') |
|
13651 |
777 |
while (*list != separator && *list != '\0') |
312
|
0 |
777 |
if (litems->item == NULL) |
333
|
0 |
1553 |
if (list == NULL) |
338
|
2273 |
1553 |
while (current) |
341
|
2272 |
1 |
if (current->item) |
360
|
12190207 |
4916206 |
if (len > (uint32) sizeof(buf)) |
375
|
0 |
0 |
if (ptrptr != NULL) |
415
|
2879 |
0 |
if (tm != NULL) |
466
|
0 |
2879 |
if (current_time == ((time_t) -1)) |
474
|
0 |
2879 |
if ((offset < 0 && offseted_time > current_time) || (offset > 0)) |
|
0 |
0 |
if ((offset < 0 && offseted_time > current_time) || (offset > 0)) |
|
0 |
2879 |
if ((offset < 0 && offseted_time > current_time) || (offset > 0)) |
481
|
2879 |
0 |
if (ret == PS_SUCCESS && offset > 0) |
|
0 |
2879 |
if (ret == PS_SUCCESS && offset > 0) |
496
|
0 |
12974 |
if (t->tm_mon > 11) |
501
|
70 |
12904 |
if (days == 28) |
506
|
30 |
40 |
int is_leap_year = (year % 4) == 0 && |
|
0 |
30 |
int is_leap_year = (year % 4) == 0 && |
507
|
0 |
0 |
((year % 100) != 0 || (year % 400) == 0); |
521
|
0 |
5758 |
if (offset < 0) |
527
|
0 |
5758 |
while (offset > 883612800) |
535
|
0 |
5758 |
if (offset == 0) |
542
|
5758 |
0 |
if (res->tm_sec >= 60) |
547
|
5758 |
0 |
if (res->tm_min >= 60) |
552
|
5758 |
0 |
if (res->tm_hour >= 24) |
560
|
155 |
5758 |
while (res->tm_mday > mdays(res)) |
564
|
115 |
40 |
if (res->tm_mon > 11) |
586
|
11516 |
0 |
return len == PS_BROKENDOWN_TIME_STR_LEN - 1 ? PS_SUCCESS : PS_FAILURE; |
599
|
82912 |
41436 |
while (digits) |
601
|
82912 |
0 |
if (*c < '0' || *c > '9') |
|
0 |
82912 |
if (*c < '0' || *c > '9') |
613
|
41436 |
0 |
if (result < minimum || result > maximum) |
|
0 |
41436 |
if (result < minimum || result > maximum) |
636
|
0 |
6906 |
if (!target) |
646
|
20 |
6886 |
if (year_len == 4) |
649
|
0 |
20 |
if (time_len != 15 && strict) |
|
0 |
0 |
if (time_len != 15 && strict) |
654
|
0 |
20 |
if (time_len < 14 && !strict) |
|
0 |
0 |
if (time_len < 14 && !strict) |
660
|
6886 |
0 |
else if (year_len == 2) |
663
|
0 |
6886 |
if (time_len != 13 && strict) |
|
0 |
0 |
if (time_len != 13 && strict) |
667
|
0 |
6886 |
if (time_len < 12 && !strict) |
|
0 |
0 |
if (time_len < 12 && !strict) |
678
|
0 |
6906 |
if (year == (unsigned) -1) |
684
|
0 |
6906 |
if (month == (unsigned) -1) |
690
|
0 |
6906 |
if (mday == (unsigned) -1) |
696
|
0 |
6906 |
if (hour == (unsigned) -1) |
702
|
0 |
6906 |
if (min == (unsigned) -1) |
712
|
0 |
6906 |
if (sec == (unsigned) -1) |
719
|
0 |
6906 |
if (strict && *c != 'Z') |
|
0 |
0 |
if (strict && *c != 'Z') |
734
|
6861 |
45 |
if (year < 50) |
738
|
20 |
25 |
else if (year >= 1900) |
742
|
0 |
25 |
else if (year >= 100) |
759
|
0 |
6906 |
if (target->tm_mday > mdays(target)) |
783
|
0 |
6906 |
if (time_string_len > 255) |
788
|
6886 |
20 |
res = parsedate_zulu((const unsigned char *) string, |
794
|
6906 |
0 |
return res ? PS_SUCCESS : PS_FAILURE; |
835
|
0 |
0 |
if ((opts & ~PS_STRING_DUAL_NIL) != 0) |
855
|
0 |
0 |
if (clen == 2 && (input_len & 1) > 0) |
|
0 |
0 |
if (clen == 2 && (input_len & 1) > 0) |
861
|
0 |
0 |
if (err != PS_SUCCESS) |
868
|
0 |
0 |
err = psDynBufInit(pool, &out, input_len + 2) ? PS_SUCCESS : PS_MEM_FAIL; |
869
|
0 |
0 |
if (err != PS_SUCCESS) |
874
|
0 |
0 |
if (clen == 1) |
876
|
0 |
0 |
while (psParseCanRead(&in, 1)) |
879
|
0 |
0 |
if (chr >= 1) |
893
|
0 |
0 |
while (psParseCanRead(&in, 2)) |
901
|
0 |
0 |
if (chr != 0 && (chr < 0xd800 || chr > 0xdfff)) |
|
0 |
0 |
if (chr != 0 && (chr < 0xd800 || chr > 0xdfff)) |
|
0 |
0 |
if (chr != 0 && (chr < 0xd800 || chr > 0xdfff)) |
915
|
0 |
0 |
if (output_len == NULL) |
922
|
0 |
0 |
if ((opts & PS_STRING_DUAL_NIL) != 0) |
927
|
0 |
0 |
if (err == PS_SUCCESS) |
930
|
0 |
0 |
*output_len -= (opts & PS_STRING_DUAL_NIL) ? 2 : 1; |
931
|
0 |
0 |
if (*output == NULL) |