Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1468

out-of-bounds array access in qd_entity_refresh_connector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.0
    • 1.10.0
    • Router Node
    • None

    Description

      Found by AddressSanitizer:

       

      /home/kgiusti/work/qpid-dispatch/src/connection_manager.c:852:5: error: ‘memset’ forming offset [1, 4] is out of the bounds [0, 0] of object ‘({anonymous})’ with type ‘unsi\
      gned char[0][-Werror=array-bounds]
      852 | memset(state_info, 0, sizeof(state_length));;

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/kgiusti/work/qpid-dispatch/src/connection_manager.c:766:12: note: ‘({anonymous})’ declared here
      766
      qd_error_t qd_entity_refresh_connector(qd_entity_t* entity, void *impl)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~

      Attachments

        Issue Links

          Activity

            People

              kgiusti Ken Giusti
              kgiusti Ken Giusti
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: