OpenCoverage

x_int64.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/asn1/x_int64.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2static int uint64_new(ASN1_VALUE **pval, const ASN1_ITEM *it)-
3{-
4 if ((*
(*pval = (ASN1...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 208 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
pval = (ASN1_VALUE *)CRYPTO_zalloc(sizeof(uint64_t), __FILE__, 31)) ==
(*pval = (ASN1...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 208 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-208
5 ((void *)0)
(*pval = (ASN1...== ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 208 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
0-208
6 ) {-
7 ERR_put_error(13,(141),((1|64)),__FILE__,32);-
8 return
never executed: return 0;
0;
never executed: return 0;
0
9 }-
10 return
executed 208 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 208 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
208
11}-
12-
13static void uint64_free(ASN1_VALUE **pval, const ASN1_ITEM *it)-
14{-
15 CRYPTO_free(*pval, __FILE__, 40);-
16 *pval = -
17 ((void *)0)-
18 ;-
19}
executed 13292 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
13292
20-
21static void uint64_clear(ASN1_VALUE **pval, const ASN1_ITEM *it)-
22{-
23 **(uint64_t **)pval = 0;-
24}
executed 43142 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
43142
25-
26static int uint64_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype,-
27 const ASN1_ITEM *it)-
28{-
29 uint64_t utmp;-
30 int neg = 0;-
31-
32 char *cp = (char *)*pval;-
33-
34-
35 memcpy(&utmp, cp, sizeof(utmp));-
36-
37 if ((
(it->size & (1<<0)) == (1<<0)Description
TRUEevaluated 62577 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 455 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<0)) == (1<<0)
(it->size & (1<<0)) == (1<<0)Description
TRUEevaluated 62577 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 455 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
455-62577
38 && utmp == 0
utmp == 0Description
TRUEevaluated 16576 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 46001 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
16576-46001
39 return
executed 16576 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
-1;
executed 16576 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
16576
40 if ((
(it->size & (1<<1)) == (1<<1)Description
TRUEevaluated 37033 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 9423 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<1)) == (1<<1)
(it->size & (1<<1)) == (1<<1)Description
TRUEevaluated 37033 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 9423 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
9423-37033
41 && (
(int64_t)utmp < 0Description
TRUEevaluated 128 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 36905 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
int64_t)utmp < 0
(int64_t)utmp < 0Description
TRUEevaluated 128 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 36905 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
128-36905
42-
43 utmp = 0 - utmp;-
44 neg = 1;-
45 }
executed 128 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
128
46-
47 return
executed 46456 times by 1 test: return i2c_uint64_int(cont, utmp, neg);
Executed by:
  • libcrypto.so.1.1
i2c_uint64_int(cont, utmp, neg);
executed 46456 times by 1 test: return i2c_uint64_int(cont, utmp, neg);
Executed by:
  • libcrypto.so.1.1
46456
48}-
49-
50static int uint64_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,-
51 int utype, char *free_cont, const ASN1_ITEM *it)-
52{-
53 uint64_t utmp = 0;-
54 char *cp;-
55 int neg = 0;-
56-
57 if (*
*pval == ((void *)0)Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5157 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
pval ==
*pval == ((void *)0)Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5157 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
104-5157
58 ((void *)0)
*pval == ((void *)0)Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5157 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
104-5157
59 && !uint64_new(pval, it)
!uint64_new(pval, it)Description
TRUEnever evaluated
FALSEevaluated 104 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-104
60 return
never executed: return 0;
0;
never executed: return 0;
0
61-
62 cp = (char *)*pval;-
63-
64-
65-
66-
67-
68-
69-
70 if (len == 0
len == 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5254 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
7-5254
71 goto
executed 7 times by 1 test: goto long_compat;
Executed by:
  • libcrypto.so.1.1
long_compat;
executed 7 times by 1 test: goto long_compat;
Executed by:
  • libcrypto.so.1.1
7
72-
73 if (!c2i_uint64_int(&utmp, &neg, &cont, len)
!c2i_uint64_in...g, &cont, len)Description
TRUEevaluated 69 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5185 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
69-5185
74 return
executed 69 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 69 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
69
75 if ((
(it->size & (1<<1)) == 0Description
TRUEevaluated 1134 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4051 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<1)) == 0
(it->size & (1<<1)) == 0Description
TRUEevaluated 1134 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4051 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
&& neg
negDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1112 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
22-4051
76 ERR_put_error(13,(112),(226),__FILE__,97);-
77 return
executed 22 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 22 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
22
78 }-
79 if ((
(it->size & (1<<1)) == (1<<1)Description
TRUEevaluated 4051 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1112 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<1)) == (1<<1)
(it->size & (1<<1)) == (1<<1)Description
TRUEevaluated 4051 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 1112 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
1112-4051
80 && !neg
!negDescription
TRUEevaluated 4015 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 36 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
&& utmp >
utmp > (9223372036854775807L)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4010 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
5-4015
81 (9223372036854775807L)
utmp > (9223372036854775807L)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 4010 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
5-4010
82 ) {-
83 ERR_put_error(13,(112),(223),__FILE__,102);-
84 return
executed 5 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 5 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
5
85 }-
86 if (neg
negDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 5122 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
36-5122
87-
88 utmp = 0 - utmp;
executed 36 times by 1 test: utmp = 0 - utmp;
Executed by:
  • libcrypto.so.1.1
36
89-
90 long_compat:
code before this statement executed 5158 times by 1 test: long_compat:
Executed by:
  • libcrypto.so.1.1
5158
91 memcpy(cp, &utmp, sizeof(utmp));-
92 return
executed 5165 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 5165 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
5165
93}-
94-
95static int uint64_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it,-
96 int indent, const ASN1_PCTX *pctx)-
97{-
98 if ((
(it->size & (1<<1)) == (1<<1)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 18 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<1)) == (1<<1)
(it->size & (1<<1)) == (1<<1)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 18 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
18-28
99 return
executed 28 times by 1 test: return BIO_printf(out, "%jd\n", **(int64_t **)pval);
Executed by:
  • libcrypto.so.1.1
BIO_printf(out, "%jd\n", **(int64_t **)pval);
executed 28 times by 1 test: return BIO_printf(out, "%jd\n", **(int64_t **)pval);
Executed by:
  • libcrypto.so.1.1
28
100 return
executed 18 times by 1 test: return BIO_printf(out, "%ju\n", **(uint64_t **)pval);
Executed by:
  • libcrypto.so.1.1
BIO_printf(out, "%ju\n", **(uint64_t **)pval);
executed 18 times by 1 test: return BIO_printf(out, "%ju\n", **(uint64_t **)pval);
Executed by:
  • libcrypto.so.1.1
18
101}-
102-
103-
104-
105static int uint32_new(ASN1_VALUE **pval, const ASN1_ITEM *it)-
106{-
107 if ((*
(*pval = (ASN1...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
pval = (ASN1_VALUE *)CRYPTO_zalloc(sizeof(uint32_t), __FILE__, 126)) ==
(*pval = (ASN1...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
108 ((void *)0)
(*pval = (ASN1...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
109 ) {-
110 ERR_put_error(13,(139),((1|64)),__FILE__,127);-
111 return
never executed: return 0;
0;
never executed: return 0;
0
112 }-
113 return
never executed: return 1;
1;
never executed: return 1;
0
114}-
115-
116static void uint32_free(ASN1_VALUE **pval, const ASN1_ITEM *it)-
117{-
118 CRYPTO_free(*pval, __FILE__, 135);-
119 *pval = -
120 ((void *)0)-
121 ;-
122}
executed 13292 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
13292
123-
124static void uint32_clear(ASN1_VALUE **pval, const ASN1_ITEM *it)-
125{-
126 **(uint32_t **)pval = 0;-
127}
executed 130589 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
130589
128-
129static int uint32_i2c(ASN1_VALUE **pval, unsigned char *cont, int *putype,-
130 const ASN1_ITEM *it)-
131{-
132 uint32_t utmp;-
133 int neg = 0;-
134-
135 char *cp = (char *)*pval;-
136-
137-
138 memcpy(&utmp, cp, sizeof(utmp));-
139-
140 if ((
(it->size & (1<<0)) == (1<<0)Description
TRUEevaluated 48258 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 72454 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<0)) == (1<<0)
(it->size & (1<<0)) == (1<<0)Description
TRUEevaluated 48258 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 72454 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
48258-72454
141 && utmp == 0
utmp == 0Description
TRUEevaluated 38248 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 10010 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
10010-38248
142 return
executed 38248 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
-1;
executed 38248 times by 1 test: return -1;
Executed by:
  • libcrypto.so.1.1
38248
143 if ((
(it->size & (1<<1)) == (1<<1)Description
TRUEevaluated 58073 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 24391 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<1)) == (1<<1)
(it->size & (1<<1)) == (1<<1)Description
TRUEevaluated 58073 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 24391 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
24391-58073
144 && (
(int32_t)utmp < 0Description
TRUEevaluated 6464 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 51609 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
int32_t)utmp < 0
(int32_t)utmp < 0Description
TRUEevaluated 6464 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 51609 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
6464-51609
145-
146 utmp = 0 - utmp;-
147 neg = 1;-
148 }
executed 6464 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
6464
149-
150 return
executed 82464 times by 1 test: return i2c_uint64_int(cont, (uint64_t)utmp, neg);
Executed by:
  • libcrypto.so.1.1
i2c_uint64_int(cont, (uint64_t)utmp, neg);
executed 82464 times by 1 test: return i2c_uint64_int(cont, (uint64_t)utmp, neg);
Executed by:
  • libcrypto.so.1.1
82464
151}-
152static int uint32_c2i(ASN1_VALUE **pval, const unsigned char *cont, int len,-
153 int utype, char *free_cont, const ASN1_ITEM *it)-
154{-
155 uint64_t utmp = 0;-
156 uint32_t utmp2 = 0;-
157 char *cp;-
158 int neg = 0;-
159-
160 if (*
*pval == ((void *)0)Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 37729 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
pval ==
*pval == ((void *)0)Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 37729 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
104-37729
161 ((void *)0)
*pval == ((void *)0)Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 37729 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
104-37729
162 && !uint64_new(pval, it)
!uint64_new(pval, it)Description
TRUEnever evaluated
FALSEevaluated 104 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
0-104
163 return
never executed: return 0;
0;
never executed: return 0;
0
164-
165 cp = (char *)*pval;-
166-
167-
168-
169-
170-
171-
172-
173 if (len == 0
len == 0Description
TRUEevaluated 249 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 37584 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
249-37584
174 goto
executed 249 times by 1 test: goto long_compat;
Executed by:
  • libcrypto.so.1.1
long_compat;
executed 249 times by 1 test: goto long_compat;
Executed by:
  • libcrypto.so.1.1
249
175-
176 if (!c2i_uint64_int(&utmp, &neg, &cont, len)
!c2i_uint64_in...g, &cont, len)Description
TRUEevaluated 401 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 37183 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
401-37183
177 return
executed 401 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 401 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
401
178 if ((
(it->size & (1<<1)) == 0Description
TRUEevaluated 4295 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 32888 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<1)) == 0
(it->size & (1<<1)) == 0Description
TRUEevaluated 4295 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 32888 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
&& neg
negDescription
TRUEevaluated 325 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3970 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
325-32888
179 ERR_put_error(13,(105),(226),__FILE__,200);-
180 return
executed 325 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 325 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
325
181 }-
182 if (neg
negDescription
TRUEevaluated 6266 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 30592 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
6266-30592
183 if (utmp > ((uint32_t)
utmp > ((uint3...47483647) + 1)Description
TRUEevaluated 70 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 6196 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
70-6196
184 (2147483647)
utmp > ((uint3...47483647) + 1)Description
TRUEevaluated 70 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 6196 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
70-6196
185 + 1)
utmp > ((uint3...47483647) + 1)Description
TRUEevaluated 70 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 6196 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
) {
70-6196
186 ERR_put_error(13,(105),(224),__FILE__,205);-
187 return
executed 70 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 70 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
70
188 }-
189 utmp = 0 - utmp;-
190 }
executed 6196 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
else {
6196
191 if (((
(it->size & (1<<1)) != 0Description
TRUEevaluated 26622 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3970 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<1)) != 0
(it->size & (1<<1)) != 0Description
TRUEevaluated 26622 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3970 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
&& utmp >
utmp > (2147483647)Description
TRUEevaluated 94 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 26528 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
94-26622
192 (2147483647)
utmp > (2147483647)Description
TRUEevaluated 94 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 26528 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
94-26528
193 )-
194 || ((
(it->size & (1<<1)) == 0Description
TRUEevaluated 3970 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 26528 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<1)) == 0
(it->size & (1<<1)) == 0Description
TRUEevaluated 3970 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 26528 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
&& utmp >
utmp > (4294967295U)Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3950 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
20-26528
195 (4294967295U)
utmp > (4294967295U)Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 3950 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
20-3950
196 )) {-
197 ERR_put_error(13,(105),(223),__FILE__,212);-
198 return
executed 114 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
0;
executed 114 times by 1 test: return 0;
Executed by:
  • libcrypto.so.1.1
114
199 }-
200 }
executed 30478 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
30478
201-
202 long_compat:
code before this statement executed 36674 times by 1 test: long_compat:
Executed by:
  • libcrypto.so.1.1
36674
203 utmp2 = (uint32_t)utmp;-
204 memcpy(cp, &utmp2, sizeof(utmp2));-
205 return
executed 36923 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 36923 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
36923
206}-
207-
208static int uint32_print(BIO *out, ASN1_VALUE **pval, const ASN1_ITEM *it,-
209 int indent, const ASN1_PCTX *pctx)-
210{-
211 if ((
(it->size & (1<<1)) == (1<<1)Description
TRUEevaluated 978 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 12 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
it->size & (1<<1)) == (1<<1)
(it->size & (1<<1)) == (1<<1)Description
TRUEevaluated 978 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEevaluated 12 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
)
12-978
212 return
executed 978 times by 1 test: return BIO_printf(out, "%d\n", **(int32_t **)pval);
Executed by:
  • libcrypto.so.1.1
BIO_printf(out, "%d\n", **(int32_t **)pval);
executed 978 times by 1 test: return BIO_printf(out, "%d\n", **(int32_t **)pval);
Executed by:
  • libcrypto.so.1.1
978
213 return
executed 12 times by 1 test: return BIO_printf(out, "%u\n", **(uint32_t **)pval);
Executed by:
  • libcrypto.so.1.1
BIO_printf(out, "%u\n", **(uint32_t **)pval);
executed 12 times by 1 test: return BIO_printf(out, "%u\n", **(uint32_t **)pval);
Executed by:
  • libcrypto.so.1.1
12
214}-
215-
216-
217-
218-
219static ASN1_PRIMITIVE_FUNCS uint32_pf = {-
220 -
221 ((void *)0)-
222 , 0,-
223 uint32_new,-
224 uint32_free,-
225 uint32_clear,-
226 uint32_c2i,-
227 uint32_i2c,-
228 uint32_print-
229};-
230-
231static ASN1_PRIMITIVE_FUNCS uint64_pf = {-
232 -
233 ((void *)0)-
234 , 0,-
235 uint64_new,-
236 uint64_free,-
237 uint64_clear,-
238 uint64_c2i,-
239 uint64_i2c,-
240 uint64_print-
241};-
242-
243const ASN1_ITEM INT32_it = {-
244 0x0, 2, -
245 ((void *)0)-
246 , 0, &uint32_pf,-
247 (1<<1), "INT32"-
248};-
249-
250const ASN1_ITEM UINT32_it = {-
251 0x0, 2, -
252 ((void *)0)-
253 , 0, &uint32_pf, 0, "UINT32"-
254};-
255-
256const ASN1_ITEM INT64_it = {-
257 0x0, 2, -
258 ((void *)0)-
259 , 0, &uint64_pf,-
260 (1<<1), "INT64"-
261};-
262-
263const ASN1_ITEM UINT64_it = {-
264 0x0, 2, -
265 ((void *)0)-
266 , 0, &uint64_pf, 0, "UINT64"-
267};-
268-
269const ASN1_ITEM ZINT32_it = {-
270 0x0, 2, -
271 ((void *)0)-
272 , 0, &uint32_pf,-
273 (1<<0)|(1<<1), "ZINT32"-
274};-
275-
276const ASN1_ITEM ZUINT32_it = {-
277 0x0, 2, -
278 ((void *)0)-
279 , 0, &uint32_pf,-
280 (1<<0), "ZUINT32"-
281};-
282-
283const ASN1_ITEM ZINT64_it = {-
284 0x0, 2, -
285 ((void *)0)-
286 , 0, &uint64_pf,-
287 (1<<0)|(1<<1), "ZINT64"-
288};-
289-
290const ASN1_ITEM ZUINT64_it = {-
291 0x0, 2, -
292 ((void *)0)-
293 , 0, &uint64_pf,-
294 (1<<0), "ZUINT64"-
295};-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2