RFR: 6478546: FileInputStream.read() throws OutOfMemoryError when there is plenty available [v2]
Vyom Tewari
vtewari at openjdk.org
Wed Jul 26 16:00:52 UTC 2023
On Wed, 26 Jul 2023 15:49:38 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> src/java.base/share/native/libjava/io_util.c line 173:
>>
>>> 171: if (len > MAX_MALLOC_SIZE)
>>> 172: len = MAX_MALLOC_SIZE;
>>> 173: buf = (char*)malloc(len*sizeof(char));
>>
>> please reformat line 173
>
>> please reformat line 173
>
> Why?
"buf = (char*)malloc(len*sizeof(char));" --> "buf = (char*)malloc(len * sizeof(char));"
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14981#discussion_r1275185140
More information about the security-dev
mailing list