Ken Giusti created DISPATCH-1468:
------------------------------------

             Summary: out-of-bounds array access in qd_entity_refresh_connector
                 Key: DISPATCH-1468
                 URL: https://issues.apache.org/jira/browse/DISPATCH-1468
             Project: Qpid Dispatch
          Issue Type: Bug
          Components: Router Node
    Affects Versions: 1.9.0
            Reporter: Ken Giusti
            Assignee: Ken Giusti
             Fix For: 1.10.0


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)
 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to