commit | 1137341885d8dc451dddc2e01319fb0fab00bbc3 | [log] [tgz] |
---|---|---|
author | Kenny Root <kroot@google.com> | Thu Jul 28 15:13:33 2011 -0700 |
committer | Kenny Root <kroot@google.com> | Thu Aug 04 11:51:38 2011 -0700 |
tree | d6c4e2d8c0ab8f2ed24cd7d2ed9e84ee1d63086e | |
parent | 62c7b37590b1a692384a55949d3b9eba221a3652 [diff] |
Throw exception on odd length Signatures The old version of this code would silently truncate odd-length Signatures. However, this masks some bugs. Add a throw of IllegalArgumentException so users can easily see where they're getting bad input for Signatures. Also, go through the existing code and catch this exception or pre-check the input strings so system_server doesn't crash later. Bug: 5092338 Change-Id: I8c672c5eaeb738a92c4581ce0df09baf719980ef