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

tpm2-software / tpm2-tss / 933 / 1
36%
master: 36%

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

07 Mar 2018 02:58AM UTC coverage: 44.836% (+0.06%) from 44.774%
933.1

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

Source Files on job 933.1
  • Tree
  • List 0
  • Changed 9
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 933.1
  • 7a10ee30 on github
  • Prev Job for on master (#923.1)
  • Next Job for on master (#937.1)
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