RFR: 8264502: FileDispatcherImpl_setDirect0 might return uninitialized variable

Alan Bateman alanb at openjdk.java.net
Wed Mar 31 11:08:25 UTC 2021


On Wed, 31 Mar 2021 10:50:56 GMT, Christoph Göttschkes <cgo 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?

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

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


More information about the nio-dev mailing list