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

Fix argument order for some ecalloc function calls

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.10.0
    • Affects Version/s: 1.9.0
    • Component/s: None

      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.

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

              Created:
              Updated:
              Resolved: