Uploaded image for project: 'Qt Safe Renderer'
  1. Qt Safe Renderer
  2. QSR-1762

Reading max size layout file fails when using QSafeFileLayoutReader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • QSR 2.1.0 Beta 1
    • QSR 2.0
    • Runtime
    • None
    • 65e95e2e9 (dev), f68418d48 (6.5)

      See the function const QSafeByteArray QSafeLayoutFileReader::readDataFromFile(const qchar * const filenameArg):
      const quint32 maxLayoutFileSize = (Constraints::MAX_ITEM_COUNT*2U*Constraints::LAYOUTDATA_SIZE_V3)+Constraints::LAYOUTDATA_HEADER_SIZE;

      The calculated max size for the file is 72728 bytes but in the max capacity test where there are 128 items with fillcolor value and max amount states the file size is actually 327192.
      That makes the layout validation to fail.

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

            jussi_witick Jussi Witick
            teemu.holappa Teemu Holappa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes