Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1721

Fix argument order for some ecalloc function calls

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial - P5
    • Resolution: Fixed
    • 1.9.0
    • 1.10.0
    • None

    Description

      There are several instances where ecalloc is called with swapped parameters (i.e. "size, number" instead of "number, size"). This makes no difference in practice since the values are multiplied, but we should still correct this.

      Note: I only noticed this for ecalloc but we would do well to check other allocation functions as well.

      Attachments

        Activity

          People

            tanli.su@mongodb.com Tanli Su (Inactive)
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: