• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stefanberger / libtpms / 1862
77%

Build:
DEFAULT BRANCH: master
Ran 22 Feb 2021 03:01PM UTC
Jobs 1
Files 455
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1862

push

travis-ci-com

stefanberger
tpm2: Sanitize values read from TPM state stream (Coverity)

Sanitize some of the values read from the TPM state stream.
All Coverity discoveries seem to be false positives.

Coverity doesn't like to see array_size being used in the loop even
though it was compared against ARRAY_SIZE() before. We solve this by
using ARRAY_SIZE() as the loop limit now rather than array size.

Compare seed.b.size against PRIMARY_SEED_SIZE even though this is
already being done in TPM2B_Unmarshal().

The num_bytes parameter is sanitized via a comparison involving a
sum over a sum of values, but Coverity doesn't seem to detect this.
Then we have to use it as a loop limit. I don't see another way.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>

19 of 19 new or added lines in 1 file covered. (100.0%)

28932 of 37388 relevant lines covered (77.38%)

88706.25 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1862.2 (COVERITY_SCAN_TOKEN=[secure] CONFIG="--with-openssl --prefix=/usr --with-tpm2 --enable-test-coverage" TARGET="install" NPROC="nproc") 22 Feb 2021 03:01PM UTC 0
77.38
Travis Job 1862.2
Source Files on build 1862
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1862
  • b8e883c2 on github
  • Prev Build on master (#1841)
  • Next Build on master (#1864)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc