malloc failures in java/util/zip/Deflater (original) (raw)
Mario Torre neugens at limasoftware.net
Wed Jul 8 17:59:55 UTC 2009
- Previous message: hg: jdk7/tl/jdk: 2 new changesets
- Next message: malloc failures in java/util/zip/Deflater
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
I've found a problem in the Deflater code in OpenJDK, where a length of zero bytes is passed to malloc.
According to the specs, malloc may return either a valid pointer that can be passed to free, or NULL, while generally NULL is considered to be a failure. Linux and Solaris, albeit non specifying it, return always a valid pointer, as far as I know, but I have a weird OS here that does indeed return NULL.
I've fixed this issue locally, and thought I could share the patch with you:
http://cr.openjdk.java.net/~neugens/deflater/webrev.00/
Cheers, Mario
- Previous message: hg: jdk7/tl/jdk: 2 new changesets
- Next message: malloc failures in java/util/zip/Deflater
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]