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

Coverity issues on master branch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.11.0
    • 1.12.0
    • Container
    • None

    Description

      New defect(s) Reported-by: Coverity Scan
      
      Showing 1 of 1 defect(s)
      
      
      
      
      
      ** CID 355485:  Null pointer dereferences  (FORWARD_NULL)
      
      
      
      
      
      ________________________________________________________________________________________________________
      
      *** CID 355485:  Null pointer dereferences  (FORWARD_NULL)
      
      /home/gmurthy/opensource/qpid-dispatch/src/http-libwebsockets.c: 181 in handle_events()
      
      175     static int handle_events(connection_t* c) {
      
      176         if (!c->qd_conn) {
      
      177             return unexpected_close(c->wsi, "not-established");
      
      178         }
      
      179         pn_event_t *e;
      
      180         while ((e = pn_connection_driver_next_event(&c->driver))) {
      
      >>>     CID 355485:  Null pointer dereferences  (FORWARD_NULL)
      
      >>>     Passing null pointer "c->qd_conn" to "qd_connection_handle", which dereferences it.
      
      181             if (!qd_connection_handle(c->qd_conn, e)) {
      
      182                 c->qd_conn = 0;  // connection closed
      
      183             }
      
      184         }
      
      185         if (pn_connection_driver_write_buffer(&c->driver).size) {
      
      186             lws_callback_on_writable(c->wsi);
      
       

      Attachments

        Activity

          People

            gmurthy Ganesh Murthy
            gmurthy Ganesh Murthy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: