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

Windows: QByteArray autotest fails

    XMLWordPrintable

Details

    • 581f079b04d4c1901d820304b3e9195e096e34e2

    Description

      QByteArray autotest fails on windows:

      FAIL!  : tst_QByteArray::qvsnprintf() Compared values are not the same
         Actual (buf[5]): ?
         Expected (char(42)): *
      .\tst_qbytearray.cpp(526) : failure location
      

      It appears that microsoft implementation of vsprintf overwrites bytes after null terminator in target buffer, which makes this test fail. This is probably some security feature.

      Attachments

        Issue Links

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

          Activity

            People

              e0348803 Miikka Heikkinen
              e0348803 Miikka Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes