Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-854

Allow for basic input validation and NOPs in non-debug builds

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.2-beta1
    • Component/s: libmongoc
    • Labels:
      None

      Currently, bson_return_if_fail() is used in many places to validate user input (e.g. non-null pointers, ranges of integer arguments); however, these macros are compiled out of non-debug builds.

      For basic conditional checks, which aren't expensive, do we want those to remain in production builds?

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: