OpenCoverage

a_utf8.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/asn1/a_utf8.c
Switch to Source codePreprocessed file
LineSourceCount
1int UTF8_getc(const unsigned char *str, int len, unsigned long *val)-
2{-
3 const unsigned char *p;-
4 unsigned long value;-
5 int ret;-
6 if (len <= 0
len <= 0Description
TRUEnever evaluated
FALSEevaluated 1666089 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-1666089
7 return
never executed: return 0;
0;
never executed: return 0;
0
8 p = str;-
9-
10-
11 if ((*
(*p & 0x80) == 0Description
TRUEevaluated 1643425 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 22664 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p & 0x80) == 0
(*p & 0x80) == 0Description
TRUEevaluated 1643425 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 22664 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
22664-1643425
12 value = *p++ & 0x7f;-
13 ret = 1;-
14 }
executed 1643425 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
else if ((*
(*p & 0xe0) == 0xc0Description
TRUEevaluated 4782 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 17882 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p & 0xe0) == 0xc0
(*p & 0xe0) == 0xc0Description
TRUEevaluated 4782 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 17882 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
4782-1643425
15 if (len < 2
len < 2Description
TRUEevaluated 471 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4311 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
471-4311
16 return
executed 471 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
-1;
executed 471 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
471
17 if ((
(p[1] & 0xc0) != 0x80Description
TRUEevaluated 522 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3789 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[1] & 0xc0) != 0x80
(p[1] & 0xc0) != 0x80Description
TRUEevaluated 522 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3789 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
522-3789
18 return
executed 522 times by 1 test: return -3;
Executed by:
  • libcrypto.so.1.1
-3;
executed 522 times by 1 test: return -3;
Executed by:
  • libcrypto.so.1.1
522
19 value = (*p++ & 0x1f) << 6;-
20 value |= *p++ & 0x3f;-
21 if (value < 0x80
value < 0x80Description
TRUEevaluated 272 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3517 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
272-3517
22 return
executed 272 times by 1 test: return -4;
Executed by:
  • libcrypto.so.1.1
-4;
executed 272 times by 1 test: return -4;
Executed by:
  • libcrypto.so.1.1
272
23 ret = 2;-
24 }
executed 3517 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
else if ((*
(*p & 0xf0) == 0xe0Description
TRUEevaluated 2695 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 15187 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p & 0xf0) == 0xe0
(*p & 0xf0) == 0xe0Description
TRUEevaluated 2695 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 15187 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
2695-15187
25 if (len < 3
len < 3Description
TRUEevaluated 409 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2286 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
409-2286
26 return
executed 409 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
-1;
executed 409 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
409
27 if (((
((p[1] & 0xc0) != 0x80)Description
TRUEevaluated 414 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1872 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[1] & 0xc0) != 0x80)
((p[1] & 0xc0) != 0x80)Description
TRUEevaluated 414 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1872 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
414-1872
28 || ((
((p[2] & 0xc0) != 0x80)Description
TRUEevaluated 423 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1449 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[2] & 0xc0) != 0x80)
((p[2] & 0xc0) != 0x80)Description
TRUEevaluated 423 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1449 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
423-1449
29 return
executed 837 times by 1 test: return -3;
Executed by:
  • libcrypto.so.1.1
-3;
executed 837 times by 1 test: return -3;
Executed by:
  • libcrypto.so.1.1
837
30 value = (*p++ & 0xf) << 12;-
31 value |= (*p++ & 0x3f) << 6;-
32 value |= *p++ & 0x3f;-
33 if (value < 0x800
value < 0x800Description
TRUEevaluated 274 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1175 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
274-1175
34 return
executed 274 times by 1 test: return -4;
Executed by:
  • libcrypto.so.1.1
-4;
executed 274 times by 1 test: return -4;
Executed by:
  • libcrypto.so.1.1
274
35 ret = 3;-
36 }
executed 1175 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
else if ((*
(*p & 0xf8) == 0xf0Description
TRUEevaluated 2973 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 12214 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p & 0xf8) == 0xf0
(*p & 0xf8) == 0xf0Description
TRUEevaluated 2973 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 12214 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
1175-12214
37 if (len < 4
len < 4Description
TRUEevaluated 401 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2572 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
401-2572
38 return
executed 401 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
-1;
executed 401 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
401
39 if (((
((p[1] & 0xc0) != 0x80)Description
TRUEevaluated 410 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2162 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[1] & 0xc0) != 0x80)
((p[1] & 0xc0) != 0x80)Description
TRUEevaluated 410 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2162 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
410-2162
40 || ((
((p[2] & 0xc0) != 0x80)Description
TRUEevaluated 429 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1733 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[2] & 0xc0) != 0x80)
((p[2] & 0xc0) != 0x80)Description
TRUEevaluated 429 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1733 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
429-1733
41 || ((
((p[3] & 0xc0) != 0x80)Description
TRUEevaluated 400 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1333 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[3] & 0xc0) != 0x80)
((p[3] & 0xc0) != 0x80)Description
TRUEevaluated 400 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1333 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
400-1333
42 return
executed 1239 times by 1 test: return -3;
Executed by:
  • libcrypto.so.1.1
-3;
executed 1239 times by 1 test: return -3;
Executed by:
  • libcrypto.so.1.1
1239
43 value = ((unsigned long)(*p++ & 0x7)) << 18;-
44 value |= (*p++ & 0x3f) << 12;-
45 value |= (*p++ & 0x3f) << 6;-
46 value |= *p++ & 0x3f;-
47 if (value < 0x10000
value < 0x10000Description
TRUEevaluated 272 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1061 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
272-1061
48 return
executed 272 times by 1 test: return -4;
Executed by:
  • libcrypto.so.1.1
-4;
executed 272 times by 1 test: return -4;
Executed by:
  • libcrypto.so.1.1
272
49 ret = 4;-
50 }
executed 1061 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
else if ((*
(*p & 0xfc) == 0xf8Description
TRUEevaluated 4625 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 7589 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p & 0xfc) == 0xf8
(*p & 0xfc) == 0xf8Description
TRUEevaluated 4625 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 7589 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
1061-7589
51 if (len < 5
len < 5Description
TRUEevaluated 591 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4034 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
591-4034
52 return
executed 591 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
-1;
executed 591 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
591
53 if (((
((p[1] & 0xc0) != 0x80)Description
TRUEevaluated 345 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3689 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[1] & 0xc0) != 0x80)
((p[1] & 0xc0) != 0x80)Description
TRUEevaluated 345 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3689 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
345-3689
54 || ((
((p[2] & 0xc0) != 0x80)Description
TRUEevaluated 283 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3406 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[2] & 0xc0) != 0x80)
((p[2] & 0xc0) != 0x80)Description
TRUEevaluated 283 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3406 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
283-3406
55 || ((
((p[3] & 0xc0) != 0x80)Description
TRUEevaluated 315 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3091 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[3] & 0xc0) != 0x80)
((p[3] & 0xc0) != 0x80)Description
TRUEevaluated 315 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3091 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
315-3091
56 || ((
((p[4] & 0xc0) != 0x80)Description
TRUEevaluated 477 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2614 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[4] & 0xc0) != 0x80)
((p[4] & 0xc0) != 0x80)Description
TRUEevaluated 477 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2614 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
477-2614
57 return
executed 1420 times by 1 test: return -3;
Executed by:
  • libcrypto.so.1.1
-3;
executed 1420 times by 1 test: return -3;
Executed by:
  • libcrypto.so.1.1
1420
58 value = ((unsigned long)(*p++ & 0x3)) << 24;-
59 value |= ((unsigned long)(*p++ & 0x3f)) << 18;-
60 value |= ((unsigned long)(*p++ & 0x3f)) << 12;-
61 value |= (*p++ & 0x3f) << 6;-
62 value |= *p++ & 0x3f;-
63 if (value < 0x200000
value < 0x200000Description
TRUEevaluated 272 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 2342 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
272-2342
64 return
executed 272 times by 1 test: return -4;
Executed by:
  • libcrypto.so.1.1
-4;
executed 272 times by 1 test: return -4;
Executed by:
  • libcrypto.so.1.1
272
65 ret = 5;-
66 }
executed 2342 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
else if ((*
(*p & 0xfe) == 0xfcDescription
TRUEevaluated 6886 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 703 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p & 0xfe) == 0xfc
(*p & 0xfe) == 0xfcDescription
TRUEevaluated 6886 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 703 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
703-6886
67 if (len < 6
len < 6Description
TRUEevaluated 283 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 6603 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
283-6603
68 return
executed 283 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
-1;
executed 283 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
283
69 if (((
((p[1] & 0xc0) != 0x80)Description
TRUEevaluated 638 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5965 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[1] & 0xc0) != 0x80)
((p[1] & 0xc0) != 0x80)Description
TRUEevaluated 638 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5965 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
638-5965
70 || ((
((p[2] & 0xc0) != 0x80)Description
TRUEevaluated 287 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5678 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[2] & 0xc0) != 0x80)
((p[2] & 0xc0) != 0x80)Description
TRUEevaluated 287 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5678 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
287-5678
71 || ((
((p[3] & 0xc0) != 0x80)Description
TRUEevaluated 274 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5404 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[3] & 0xc0) != 0x80)
((p[3] & 0xc0) != 0x80)Description
TRUEevaluated 274 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5404 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
274-5404
72 || ((
((p[4] & 0xc0) != 0x80)Description
TRUEevaluated 272 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5132 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[4] & 0xc0) != 0x80)
((p[4] & 0xc0) != 0x80)Description
TRUEevaluated 272 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5132 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
272-5132
73 || ((
((p[5] & 0xc0) != 0x80)Description
TRUEevaluated 283 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4849 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
p[5] & 0xc0) != 0x80)
((p[5] & 0xc0) != 0x80)Description
TRUEevaluated 283 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4849 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
283-4849
74 return
executed 1754 times by 1 test: return -3;
Executed by:
  • libcrypto.so.1.1
-3;
executed 1754 times by 1 test: return -3;
Executed by:
  • libcrypto.so.1.1
1754
75 value = ((unsigned long)(*p++ & 0x1)) << 30;-
76 value |= ((unsigned long)(*p++ & 0x3f)) << 24;-
77 value |= ((unsigned long)(*p++ & 0x3f)) << 18;-
78 value |= ((unsigned long)(*p++ & 0x3f)) << 12;-
79 value |= (*p++ & 0x3f) << 6;-
80 value |= *p++ & 0x3f;-
81 if (value < 0x4000000
value < 0x4000000Description
TRUEevaluated 273 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4576 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
273-4576
82 return
executed 273 times by 1 test: return -4;
Executed by:
  • libcrypto.so.1.1
-4;
executed 273 times by 1 test: return -4;
Executed by:
  • libcrypto.so.1.1
273
83 ret = 6;-
84 }
executed 4576 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
else
4576
85 return
executed 703 times by 1 test: return -2;
Executed by:
  • libcrypto.so.1.1
-2;
executed 703 times by 1 test: return -2;
Executed by:
  • libcrypto.so.1.1
703
86 *val = value;-
87 return
executed 1656096 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
ret;
executed 1656096 times by 1 test: return ret;
Executed by:
  • libcrypto.so.1.1
1656096
88}-
89int UTF8_putc(unsigned char *str, int len, unsigned long value)-
90{-
91 if (!str
!strDescription
TRUEevaluated 570249 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 650339 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
570249-650339
92 len = 6;
executed 570249 times by 1 test: len = 6;
Executed by:
  • libcrypto.so.1.1
570249
93 else if (len <= 0
len <= 0Description
TRUEnever evaluated
FALSEevaluated 650339 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-650339
94 return
never executed: return -1;
-1;
never executed: return -1;
0
95 if (value < 0x80
value < 0x80Description
TRUEevaluated 1014640 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 205948 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
205948-1014640
96 if (str
strDescription
TRUEevaluated 527177 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 487463 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
487463-527177
97 *
executed 527177 times by 1 test: *str = (unsigned char)value;
Executed by:
  • libcrypto.so.1.1
str = (unsigned char)value;
executed 527177 times by 1 test: *str = (unsigned char)value;
Executed by:
  • libcrypto.so.1.1
527177
98 return
executed 1014640 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 1014640 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1014640
99 }-
100 if (value < 0x800
value < 0x800Description
TRUEevaluated 127444 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 78504 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
78504-127444
101 if (len < 2
len < 2Description
TRUEnever evaluated
FALSEevaluated 127444 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-127444
102 return
never executed: return -1;
-1;
never executed: return -1;
0
103 if (str
strDescription
TRUEevaluated 64891 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 62553 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
62553-64891
104 *str++ = (unsigned char)(((value >> 6) & 0x1f) | 0xc0);-
105 *str = (unsigned char)((value & 0x3f) | 0x80);-
106 }
executed 64891 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
64891
107 return
executed 127444 times by 1 test: return 2;
Executed by:
  • libcrypto.so.1.1
2;
executed 127444 times by 1 test: return 2;
Executed by:
  • libcrypto.so.1.1
127444
108 }-
109 if (value < 0x10000
value < 0x10000Description
TRUEevaluated 64050 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 14454 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
14454-64050
110 if (len < 3
len < 3Description
TRUEnever evaluated
FALSEevaluated 64050 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-64050
111 return
never executed: return -1;
-1;
never executed: return -1;
0
112 if (str
strDescription
TRUEevaluated 50550 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 13500 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
13500-50550
113 *str++ = (unsigned char)(((value >> 12) & 0xf) | 0xe0);-
114 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);-
115 *str = (unsigned char)((value & 0x3f) | 0x80);-
116 }
executed 50550 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
50550
117 return
executed 64050 times by 1 test: return 3;
Executed by:
  • libcrypto.so.1.1
3;
executed 64050 times by 1 test: return 3;
Executed by:
  • libcrypto.so.1.1
64050
118 }-
119 if (value < 0x200000
value < 0x200000Description
TRUEevaluated 2142 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 12312 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
2142-12312
120 if (len < 4
len < 4Description
TRUEnever evaluated
FALSEevaluated 2142 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-2142
121 return
never executed: return -1;
-1;
never executed: return -1;
0
122 if (str
strDescription
TRUEevaluated 1088 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1054 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
1054-1088
123 *str++ = (unsigned char)(((value >> 18) & 0x7) | 0xf0);-
124 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);-
125 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);-
126 *str = (unsigned char)((value & 0x3f) | 0x80);-
127 }
executed 1088 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
1088
128 return
executed 2142 times by 1 test: return 4;
Executed by:
  • libcrypto.so.1.1
4;
executed 2142 times by 1 test: return 4;
Executed by:
  • libcrypto.so.1.1
2142
129 }-
130 if (value < 0x4000000
value < 0x4000000Description
TRUEevaluated 2684 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 9628 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
2684-9628
131 if (len < 5
len < 5Description
TRUEnever evaluated
FALSEevaluated 2684 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-2684
132 return
never executed: return -1;
-1;
never executed: return -1;
0
133 if (str
strDescription
TRUEevaluated 1453 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1231 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
1231-1453
134 *str++ = (unsigned char)(((value >> 24) & 0x3) | 0xf8);-
135 *str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80);-
136 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);-
137 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);-
138 *str = (unsigned char)((value & 0x3f) | 0x80);-
139 }
executed 1453 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
1453
140 return
executed 2684 times by 1 test: return 5;
Executed by:
  • libcrypto.so.1.1
5;
executed 2684 times by 1 test: return 5;
Executed by:
  • libcrypto.so.1.1
2684
141 }-
142 if (len < 6
len < 6Description
TRUEnever evaluated
FALSEevaluated 9628 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-9628
143 return
never executed: return -1;
-1;
never executed: return -1;
0
144 if (str
strDescription
TRUEevaluated 5180 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4448 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
4448-5180
145 *str++ = (unsigned char)(((value >> 30) & 0x1) | 0xfc);-
146 *str++ = (unsigned char)(((value >> 24) & 0x3f) | 0x80);-
147 *str++ = (unsigned char)(((value >> 18) & 0x3f) | 0x80);-
148 *str++ = (unsigned char)(((value >> 12) & 0x3f) | 0x80);-
149 *str++ = (unsigned char)(((value >> 6) & 0x3f) | 0x80);-
150 *str = (unsigned char)((value & 0x3f) | 0x80);-
151 }
executed 5180 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
5180
152 return
executed 9628 times by 1 test: return 6;
Executed by:
  • libcrypto.so.1.1
6;
executed 9628 times by 1 test: return 6;
Executed by:
  • libcrypto.so.1.1
9628
153}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2