summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-05-01 13:45:30 -0700
committerNick Kralevich <nnk@google.com>2017-05-02 14:11:49 -0700
commita761231b96f0da85ff01a4a22fe3a04487c634d9 (patch)
tree49806921be29894019b06a69bfc07f95b7b60306 /trusty/coverage/coverage.cpp
parentfde19425f3b5b5ac2816b7f8b793fe09628f0e4a (diff)
Stop writing NUL bytes in adbkey.pub.
In N we moved some code from C to C++ without realizing that EVP_EncodedLength includes space for a terminating NUL and EVP_EncodeBlock writes one. Because our key reading code copes with the NUL, we never noticed. Distinguish between the required space returned by EVP_EncodedLength and the actual number of bytes (not including NUL) used return by EVP_EncodeBlock. Bug: http://b/36187819 Test: hexdump of ~/.android/adbkey.pub (cherry picked from commit 0b771b33fd934db9a7962ad704cdd38f72895c1a) Change-Id: I6e16b8d48d097b4054417c1d1a225bf7ece985b9
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions