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

Java_sun_awt_shell_Win32ShellFolder2_getLinkLocation check MultiByteToWideChar return value for failures

    XMLWordPrintable

Details

    • b15
    • windows

    Backports

      Description

        https://docs.microsoft.com/en-us/windows/win32/api/stringapiset/nf-stringapiset-multibytetowidechar
        states about MultiByteToWideChar : "The function returns 0 if it does not succeed" and lists a few failure cases.
        However we miss checking the failure cases in Java_sun_awt_shell_Win32ShellFolder2_getLinkLocation , seems we assume the function always works nicely (in most of the JDK coding the return value is checked ).

        Attachments

          Issue Links

            Activity

              People

                mbaesken Matthias Baesken
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: