RFR: 8264502: FileDispatcherImpl_setDirect0 might return uninitialized variable

Christoph Göttschkes cgo at openjdk.java.net
Wed Mar 31 11:14:30 UTC 2021


On Wed, 31 Mar 2021 11:05:38 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Hi,
>> 
>> please review this small patch which fixes a possible return of an uninitialized variable.
>> 
>> Thanks,
>> Christoph
>
> src/java.base/unix/native/libnio/ch/FileDispatcherImpl.c line 378:
> 
>> 376:     }
>> 377: #else
>> 378:     result = -1;
> 
> This looks okay but can you add to the bug or the PR as to how you ran into this, is this a port to some platform that doesn't support it?

I made a comment in the bug report.

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

PR: https://git.openjdk.java.net/jdk/pull/3284


More information about the nio-dev mailing list