[CDRIVER-854] Allow for basic input validation and NOPs in non-debug builds Created: 17/Sep/15 Updated: 03/May/17 Resolved: 17/Sep/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc |
| Affects Version/s: | 1.2-beta1 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Jeremy Mikola | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
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? |