RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]

Brian Burkhalter bpb at openjdk.org
Wed Jul 26 16:08:56 UTC 2023


On Wed, 26 Jul 2023 15:58:15 GMT, Vyom Tewari <vtewari at openjdk.org> wrote:

>>> please reformat line 173
>> 
>> Why?
>
> "buf = (char*)malloc(len*sizeof(char));" --> "buf = (char*)malloc(len * sizeof(char));"

> "buf = (char*)malloc(len_sizeof(char));" --> "buf = (char_)malloc(len * sizeof(char));"

Both sides of this are wrong.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/14981#discussion_r1275193937



More information about the security-dev mailing list