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

Reading max size layout file fails when using QSafeFileLayoutReader

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        For Gerrit Dashboard: QSR-1762
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes