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

tpm2-software / tpm2-tools / 1419
0%

Build:
DEFAULT BRANCH: master
Ran 10 Jan 2018 08:41PM UTC
Jobs 1
Files 764
Run time 75min
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
1419

push

travis-ci

William Roberts
lib: fix tpm2_print_usage() when tools have no options/args

For tools that takes no options and arguments, its struct tpm2_options is
NULL so trying to access it will lead to a NULL pointer dereference error.

This is checked in the main() function before calling tpm2_print_usage(),
but it was checked when tpm2_print_usage() was added as a fallback to the
--help option when executing the man pager fails.

Instead of relying of the caller to do the check, make tpm2_print_usage()
robust enough to cope with being called with a NULL struct tpm2_options.

After all, it makes no sense to print a usage text for a tool that takes
neither options nor arguments.

Fixes: #760

Reported-by: Emmanuel Deloget <logout@free.fr>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>

3479 of 5069 relevant lines covered (68.63%)

47.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1419.1 10 Jan 2018 08:41PM UTC 0
68.63
Travis Job 1419.1
Source Files on build 1419
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1419
  • dbaf76f0 on github
  • Prev Build on master (#1411)
  • Next Build on master (#1427)
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