[kaffe] Adler32

Mark Wielaard mark at klomp.org
Thu Sep 1 10:27:59 PDT 2005


Hi,

Just created some Adler32 tests for mauve.
It seems there are two bugs in the default kaffe (zlib based) Adler32
implementation. The checksum starts at 1, not 0. And the checksum is an
unsigned int returned as long:

2005-09-01  Mark Wielaard  <mark at klomp.org>

        * libraries/javalib/java/util/zip/Adler32.java
        (Adler32): Set adler to 1.
        (reset): Likewise.
        (getValue): Return unsigned int value.

With this all the new mauve tests pass.
But please check carefully since I didn't find any official adler32 test
vectors.

Cheers,

Mark

-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://kaffe.org/pipermail/kaffe/attachments/20050901/05e7a403/attachment-0002.pgp 


More information about the kaffe mailing list