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

Missing error buffer null check in os::dll_load on Linux/BSD

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 8
    • hotspot
    • b08
    • linux, os_x

      Spotted whilst fixing a larger issue on Windows (JDK-8362846):

      BSD:
        int diag_msg_max_length=ebuflen-strlen(ebuf);

      Linux:
        size_t prefix_len = strlen(ebuf);
         ssize_t diag_msg_max_length = ebuflen - prefix_len;

      Code has been present since before JDK 8. Fortunately we don't pass null error buffers on these platforms.

            dholmes David Holmes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: