[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/24191] New: Uninitialized output buffer in javax.crypto.C
From: |
n-roeser at gmx dot net |
Subject: |
[Bug classpath/24191] New: Uninitialized output buffer in javax.crypto.CipherOutputStream produces NullPointerException |
Date: |
4 Oct 2005 14:33:05 -0000 |
In javax.crypto.CipherOutputStream, the field outBuffer is never initialized.
When process() is called, it calls out.write(outBuffer), which is equivalent to
out.write(null). This produces a NullPointerException, when the buffer length
is queried (b.length in java.io.OutputStream, I'd say).
The outBuffer field should be initialized to a large enough buffer that can
hold the output of cipher.update(...), I think.
--
Summary: Uninitialized output buffer in
javax.crypto.CipherOutputStream produces
NullPointerException
Product: classpath
Version: 0.18
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: n-roeser at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24191
- [Bug classpath/24191] New: Uninitialized output buffer in javax.crypto.CipherOutputStream produces NullPointerException,
n-roeser at gmx dot net <=