os::lasterror incorrectly truncates buffer in os_windows.cpp

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: hotspot
    • None

      n in os::lasterror defined by os_windows.cpp is only the length of the string's actual character data, not accounting for the null character terminating the string. We should terminate the (n + 1)'th character, not the n'th character

            Assignee:
            Julian Waters
            Reporter:
            Julian Waters
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: