diff options
author | Adam Vartanian <flooey@google.com> | 2017-02-22 15:50:26 +0000 |
---|---|---|
committer | Adam Vartanian <flooey@google.com> | 2017-03-06 10:33:32 +0000 |
commit | b1fb0c291caf4025e060b81cba92a3299a8b8033 (patch) | |
tree | cd262035f7d30e8363beb73d107b2e456efc0826 /include/ScopedJavaUnicodeString.h | |
parent | cf365489c921766088c7ec2b9b63c5dd3d36cf49 (diff) |
Don't swallow AEADBadTagExceptions when closing CipherInputStream
The current implementation of CipherInputStream assumes that any
exceptions will be thrown when read() is called, but BouncyCastle's
implementation of AES/GCM throws exceptions on doFinal(), which is
called from close(). This results in CipherInputStream swallowing
those exceptions, which means corrupt streams can be silently
accepted.
Bug: 31590622
Test: cts run -m CtsLibcoreTestCases
Change-Id: Ic215f0f0f462b0f96755359075436869e27e5313
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions