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

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes