OpenCoverage

timingsafe_bcmp.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssh/src/openbsd-compat/timingsafe_bcmp.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3int-
4timingsafe_bcmp(const void *b1, const void *b2, size_t n)-
5{-
6 const unsigned char *p1 = b1, *p2 = b2;-
7 int ret = 0;-
8-
9 for (; n > 0
n > 0Description
TRUEevaluated 20271 times by 3 tests
Evaluated by:
  • ssh-keygen
  • test_kex
  • test_sshkey
FALSEevaluated 1106 times by 3 tests
Evaluated by:
  • ssh-keygen
  • test_kex
  • test_sshkey
; n--)
1106-20271
10 ret |= *p1++ ^ *p2++;
executed 20271 times by 3 tests: ret |= *p1++ ^ *p2++;
Executed by:
  • ssh-keygen
  • test_kex
  • test_sshkey
20271
11 return
executed 1106 times by 3 tests: return (ret != 0);
Executed by:
  • ssh-keygen
  • test_kex
  • test_sshkey
(ret != 0);
executed 1106 times by 3 tests: return (ret != 0);
Executed by:
  • ssh-keygen
  • test_kex
  • test_sshkey
1106
12}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2