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

pn_message_save_* do not return correct message size when PN_OVERFLOW

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • proton-0.4, proton-0.5, proton-0.7
    • proton-0.8
    • proton-c
    • None
    • All plataforms

    Description

      Expected behavior:
      When you use pn_message_save* functions API, you pass char *data and size_t *size. If the size IS NOT enough to save mesage body text, this functions return in size_t *size variable, the necessary buffer size and return PN_OVERFLOW status.

      Behavior observed:
      The pn_message_save* functions API return PN_OVERFLOW status and DO NOT return a correct value of necessary buffer.

      Patch to fix expected behavior is attached:

      Attachments

        1. landix-ret-size-message-save.patch
          0.8 kB
          Miguel da Rocha Correia Lima

        Activity

          People

            rhs Rafael H. Schloming
            mcorreialima Miguel da Rocha Correia Lima
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: