Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3775

QSettings.value() for REG_BINARY can lose data

    XMLWordPrintable

Details

    Description

      If the data content of a REG_BINARY key is an un-even number of bytes, the code in QWinSettingsPrivate::readKey will truncate the data when it converts it to unicode. The casting from the binary data to the unicode string should not loose data.

      You can duplicate this by using Regedit, creating a REG_BINARY value of 1 byte long and putting in "FF" there. Reading this data will get back no data.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            xcm Martin Petersson (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes