OpenCoverage

async_posix.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssl/src/crypto/async/arch/async_posix.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9int ASYNC_is_capable(void)-
10{-
11 ucontext_t ctx;-
12-
13-
14-
15-
16-
17 return
executed 1 time by 1 test: return getcontext(&ctx) == 0;
Executed by:
  • libcrypto.so.1.1
getcontext(&ctx) == 0;
executed 1 time by 1 test: return getcontext(&ctx) == 0;
Executed by:
  • libcrypto.so.1.1
1
18}-
19-
20void async_local_cleanup(void)-
21{-
22}-
23-
24int async_fibre_makecontext(async_fibre *fibre)-
25{-
26 fibre->env_init = 0;-
27 if (getcontext(&fibre->fibre) == 0
getcontext(&fibre->fibre) == 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
) {
0-6
28 fibre->fibre.uc_stack.ss_sp = CRYPTO_malloc(32768, __FILE__, 39);-
29 if (fibre->fibre.uc_stack.ss_sp !=
fibre->fibre.u...!= ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-6
30 ((void *)0)
fibre->fibre.u...!= ((void *)0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • libcrypto.so.1.1
FALSEnever evaluated
0-6
31 ) {-
32 fibre->fibre.uc_stack.ss_size = 32768;-
33 fibre->fibre.uc_link = -
34 ((void *)0)-
35 ;-
36 makecontext(&fibre->fibre, async_start_func, 0);-
37 return
executed 6 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
1;
executed 6 times by 1 test: return 1;
Executed by:
  • libcrypto.so.1.1
6
38 }-
39 }
never executed: end of block
else {
0
40 fibre->fibre.uc_stack.ss_sp = -
41 ((void *)0)-
42 ;-
43 }
never executed: end of block
0
44 return
never executed: return 0;
0;
never executed: return 0;
0
45}-
46-
47void async_fibre_free(async_fibre *fibre)-
48{-
49 CRYPTO_free(fibre->fibre.uc_stack.ss_sp, __FILE__, 54);-
50 fibre->fibre.uc_stack.ss_sp = -
51 ((void *)0)-
52 ;-
53}
executed 6 times by 1 test: end of block
Executed by:
  • libcrypto.so.1.1
6
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2