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

Malloc result used without testing for null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • proton-0.7
    • None
    • proton-c

    Description

        pn_buffer_t *buf = (pn_buffer_t *) malloc(sizeof(pn_buffer_t));
        buf->capacity = capacity;
      

      Many calls to malloc are properly checked but not all.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              chug Charles E. Rolke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: