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

(fs) UnixNativeDispatcher::readlink() may truncate overlong paths

XMLWordPrintable

    • b06

      In UnixNativeDispatcher.c, readlink0 function, there is the following code:

      if (n == sizeof(target)) {
          n--;
      }

      It will only happen when the target of the link exceeds PATH_MAX bytes which in theory should never occur, but if it were to, truncating the target would be an error.

            bpb Brian Burkhalter
            fyuan Frank Yuan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: