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

Crashed router due to terminus address overflow

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9.0
    • Fix Version/s: 1.10.0
    • Component/s: Router Node
    • Labels:
      None

      Description

      in router_core/connections.c::qdr_link_inbound_first_attach_CT:

       

      char source_str[1000];
      {{ char target_str[1000];}}
      {{ size_t source_len = 1000;}}
      {{ size_t target_len = 1000;}}source_str[0] = '\0';
      {{ target_str[0] = '\0';}}//
      {{ // Grab the formatted terminus strings before we schedule any IO-thread processing that}}
      {{ // might get ahead of us and free the terminus objects before we issue the log.}}
      {{ //}}
      {{ if (qd_log_enabled(core->log, QD_LOG_INFO)) {}}
           qdr_terminus_format(source, source_str, &source_len);
           qdr_terminus_format(target, target_str, &target_len);
      {{ }}}

      If the source or target terminus is too long (>1000) the output string overflows.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kgiusti Ken Giusti
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: