Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-76

Suspiciously insufficient looking buffer allocation in messenger.c

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • proton-c
    • None

    Description

      Lines 541-549:

      if (len > 1 && address[0] == '~' && address[1] == '/')

      { char buf[len + strlen(mng->name) + 4]; sprintf(buf, "amqp://%s/%s", mng->name, address); pn_message_set_reply_to(msg, buf); }

      else if (len == 0)

      { char buf[strlen(mng->name) + 4]; sprintf(buf, "amqp://%s", mng->name); pn_message_set_reply_to(msg, buf); }

      should the first "4" not be an "8" and the second a "7"?

      Attachments

        Activity

          People

            rhs Rafael H. Schloming
            rgodfrey Robert Godfrey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: