Arrays (ARR)
- ARR30-C. Do not form or use out-of-bounds pointers or array subscripts
- ARR32-C. Ensure size arguments for variable length arrays are in a valid range
- ARR36-C. Do not subtract or compare two pointers that do not refer to the same array
- ARR37-C. Do not add or subtract an integer to a pointer to a non-array object
- ARR38-C. Guarantee that library functions do not form invalid pointers
- ARR39-C. Do not add or subtract a scaled integer to a pointer
Information for Editors
In order to have a new guideline automatically listed above be sure to label it arr and rule .
Risk Assessment Summary
| Rule | Severity | Likelihood | Detectable | Repairable | Priority | Level |
|---|---|---|---|---|---|---|
| ARR30-C | High | Likely | No | No | P9 | L2 |
| ARR32-C | High | Probable | No | No | P6 | L2 |
| ARR36-C | Medium | Probable | No | No | P4 | L3 |
| ARR37-C | Medium | Probable | Yes | No | P8 | L2 |
| ARR38-C | High | Likely | No | No | P9 | L2 |
| ARR39-C | High | Probable | No | No | P6 | L2 |


