RFR: 8290824: Use InputStream.readAllBytes() instead of surrogate code
Weijun Wang
weijun at openjdk.org
Thu Jul 21 18:32:10 UTC 2022
On Thu, 21 Jul 2022 15:37:40 GMT, Сергей Цыпанов <duke at openjdk.org> wrote:
> We can use `InputStream.readAllBytes()` in `ModuleHashes` and `X509CertPath`.
The `X509CertPath.java` change looks fine, but I'm not sure about the other one. It means the whole content from the input stream is read into a single array and this could lead to a sudden peak memory usage if the size is big.
-------------
PR: https://git.openjdk.org/jdk/pull/9596
More information about the security-dev
mailing list