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

tpm2-software / tpm2-tss / 933
36%

Build:
DEFAULT BRANCH: master
Ran 07 Mar 2018 02:58AM UTC
Jobs 1
Files 738
Run time 1min
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
933

push

travis-ci

Philip Tricca
tcti: Get rid of unnecessary 4k buffer in TCTI header.

The device TCTI was being lazy and wasn't implementing some features
that the receive function should have. All of this resulted in a
completely unnecessary 4k buffer being allocated as part of every TCTI
context.

In order to support a feature that allows a caller to discover the size
of the response before allocating the response buffer we had to fix
this. The receive algorithm in the device TCTI now reads the response
header first to get the size of the response. If the caller hasn't
supplied a resposne buffer we just return them the size in the supplied
parameter. If they have supplied a response buffer and it's large enough
to hold the response we grab the rest of the response and put it
directly into the caller supplied buffer.

As part of getting this 4k back we had to do some refactoring as well to
get the header parsing function into a module not specific to the socket
TCTI code. This commit also adds a unit test for the new feature of the
receive function.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>

10588 of 23615 relevant lines covered (44.84%)

38.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 933.1 07 Mar 2018 02:58AM UTC 0
44.84
Travis Job 933.1
Source Files on build 933
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #933
  • 7a10ee30 on github
  • Prev Build on master (#923)
  • Next Build on master (#937)
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