Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8264502

(fc) FileDispatcherImpl.setDirect0 might return uninitialized variable on some platforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 11, 17
    • core-libs
    • None
    • b17
    • generic
    • generic

      The variable "result" in Java_sun_nio_ch_FileDispatcherImpl_setDirect0 might be uninitialized, if neither O_DIRECT, F_NOCACHE, or DIRECTIO_ON is defined, because the final #else block is not an assignment, but a comparison.

      https://github.com/openjdk/jdk/blob/7e42642939c0c3b8b872d72890fbb5aab4c3e507/src/java.base/unix/native/libnio/ch/FileDispatcherImpl.c

            cgo Christoph Göttschkes (Inactive)
            cgo Christoph Göttschkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: