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

stefanberger / libtpms / 2486
77%

Build:
DEFAULT BRANCH: master
Ran 31 Mar 2022 02:46PM UTC
Jobs 1
Files 458
Run time 18min
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
2486

push

travis-ci-com

stefanberger
tpm2: Initialize variable reported by Coverity (false positive)

Initialize a variable in TPM2_PolicyAuthorizeNV() following Coverity
report CID 1470811.

Down the callpath as reported in CID 1470811 in TPMI_ALG_HASH_Unmarshal()
the passed-in value of TPMI_ALG_HASH *target is stored and possibly
restored later on in case of failure. Coverity complains that the variable
is uninitialized. While this is correct, there's no harm reading the
uninitialized value from the structure and possibly restoring it later
on while not doing anything else with it otherwise. Therefore, it's a
false positive.

Resolves: https://github.com/stefanberger/libtpms/issues/311
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>

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

29212 of 37712 relevant lines covered (77.46%)

108015.95 hits per line

Jobs
ID Job ID Ran Files Coverage
2 2486.2 (COVERITY_SCAN_TOKEN=[secure] CONFIG="--with-openssl --prefix=/usr --with-tpm2 --enable-test-coverage" TARGET="install" NPROC="nproc") 31 Mar 2022 02:46PM UTC 0
77.46
Travis Job 2486.2
Source Files on build 2486
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #2486
  • fbf413ec on github
  • Prev Build on master (#2472)
  • Next Build on master (#2492)
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