[8u] RFR 8220165: Encryption using GCM results in RuntimeException: input length out of bound

Aleksey Shipilev shade at redhat.com
Fri Jul 31 08:13:26 UTC 2020


On 7/30/20 5:32 PM, Severin Gehwolf wrote:
> On Thu, 2020-07-30 at 12:36 +0200, Aleksey Shipilev wrote:
>> Original bug:
>>   https://bugs.openjdk.java.net/browse/JDK-8220165
>>   https://hg.openjdk.java.net/jdk/jdk/rev/4ff6c8365b69
>>
>> This is a follow-up for JDK-8201633 backport. The changeset applies cleanly, but it puts the test in
>> the wrong location, so it does not run. Moved the test by hand, and also had to fix the compilation
>> bug that is 8u-specific:
>>
>>     // Hash of encrypted results of AES/GCM for particular lengths.
>>     // <data size, hash>
>> -   static final HashMap<Integer, String> results = new HashMap<>() {{
>> +   static final HashMap<Integer, String> results = new HashMap<Integer, String>() {{
>>
>> 8u webrev:
>>   https://cr.openjdk.java.net/~shade/8220165/webrev.8u.01/
>>
>> Testing: jdk_security; new test (fails before the patch, passes with it)

Thanks, added tags.

-- 
Thanks,
-Aleksey



More information about the jdk8u-dev mailing list