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

wrong buffer size passed to RegSetValueEx

    XMLWordPrintable

Details

    • b26
    • x86
    • windows
    • Verified

    Backports

      Description

        src/plugin/win32/toolkit/common/JavaFX.cpp

        Usage of RegSetValueEx is wrong now - especially now that we are unicode.

          bRet = (RegSetValueEx(key, JFX_DISABLED_KEY, 0, REG_SZ,
                     (LPBYTE)disableString, _tcslen(disableString)) == ERROR_SUCCESS);

        the last param is the number of bytes that needs to be written out. it needs to take into account of sizeof(TCHAR).

        Attachments

          Issue Links

            Activity

              People

                ngthomas Thomas Ng (Inactive)
                ngthomas Thomas Ng (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: