Control: reassign -1 openjdk-7/7u71-2.5.3-1

sön 2014-11-09 klockan 08:28 +0100 skrev Lucas Nussbaum:
> Source: canl-java
> Version: 2.1.1-1
> Severity: serious
> Tags: jessie sid
> User: debian...@lists.debian.org
> Usertags: qa-ftbfs-20141108 qa-ftbfs
> Justification: FTBFS in jessie on amd64
> 
> Hi,
> 
> During a rebuild of all packages in jessie (in a jessie chroot, not a
> sid chroot), your package failed to build on amd64.
> 
> The full build log is available from:
>    
> http://aws-logs.debian.net/ftbfs-logs/2014/11/08/canl-java_2.1.1-1_jessie.log

The log for the failing test says:

java.lang.ArrayIndexOutOfBoundsException
        at 
sun.security.provider.ByteArrayAccess.i2bBig(ByteArrayAccess.java:319)
        at sun.security.provider.SHA2.implDigest(SHA2.java:104)

This is a known bug in openjdk with a know patch that needs backporting.

Patch is attached.

See https://bugzilla.redhat.com/show_bug.cgi?id=1155012 for the same bug
reported in Fedora.
--- openjdk/jdk/src/share/classes/sun/security/provider/SHA2.java	Wed Feb 13 10:40:31 2013 +0000
+++ openjdk/jdk/src/share/classes/sun/security/provider/SHA2.java	Tue Feb 26 11:12:40 2013 -0800
@@ -1,5 +1,5 @@ 
 /*
- * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -101,7 +101,7 @@ 
         i2bBig4((int)bitsProcessed, buffer, 60);
         implCompress(buffer, 0);
 
-        i2bBig(state, 0, out, ofs, 32);
+        i2bBig(state, 0, out, ofs, engineGetDigestLength());
     }
 
     /**

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to