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

QSafeStateTransition::statePropertyChange needs boundary checks or to be private method

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • QSR 3.0
    • QSR 3.0
    • Runtime
    • None
    • 28714113f (dev)

    Description

      Currently QSafeStateTransition::statePropertyChange() method is used only within the class but it is a public method in that class. Either add boundary checks for the index parameter, or move this function to be private so that it's only usable from this one class.

      Or add both, boundary checks and move it to private.

      This method should throw out of bounds exception when the fetched index is out of bounds. This would be in line with other similar index-fetching methods.

      Attachments

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

        Activity

          People

            jussi_witick Jussi Witick
            jussi_witick Jussi Witick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes