diff options
author | Elliott Hughes <enh@google.com> | 2017-05-01 13:45:30 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2017-05-01 16:05:16 -0700 |
commit | 0b771b33fd934db9a7962ad704cdd38f72895c1a (patch) | |
tree | b465007b08edfa14187d7ef9066365bc71c3cec6 /debuggerd/handler/debuggerd_handler.cpp | |
parent | 16214f2955eb8570f120893a02d978ca91f0a5a7 (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
Change-Id: I81a487ddbb5c884593b6426d1f41cfaece26ff90
Diffstat (limited to 'debuggerd/handler/debuggerd_handler.cpp')
0 files changed, 0 insertions, 0 deletions