Pointer Arithmetic (Non-Fatal)
Pointer arithmetic expressions involve a pointer subexpression and an integer subexpression. LabWindows/CVI generates an error when the pointer subexpression is invalid or when the arithmetic operation results in an invalid pointer expression. The following user protection errors involve pointer arithmetic.
- Arithmetic involving an uninitialized pointer
- Arithmetic involving a null pointer
- Out-of-bounds pointer arithmetic (calculation of an array address that results in a pointer value either before the start or past the end of the array)
- Arithmetic involving a pointer to freed memory
- Arithmetic involving an invalid pointer
- Arithmetic involving the address of a non-array object
- Arithmetic involving a pointer to a function
- Array index too large
- Negative array index