Next: About functions Up: Errors detected at run Previous: Errors detected at run

## Illegal memory access and sets

To get these messages, you must define RUNTIMECHECK cpp name when you compile Smac (see §9 page ).

- char array access out of memory to point out an illegal access through a character array (the array address plus the index is out of bounds). Here is an example generating this error message:

  Attention Be careful, Smac never checks if an index is out of bounds: For example this code won't produce any error message:

- int array access out of memory to point out an illegal access through an integer array (the array address plus the index is out of bounds).
- illegal pointer alignment for int access to point out an illegal access through an integer pointer with a bad alignment. Example:

- pointer array access out of memory to point out an illegal access in an array of pointers or a multi dimensional array.
- illegal pointer alignment for pointer access to point out an illegal access through a pointer to a pointer with a bad alignment.
- char access through pointer out of your memory area to point out an illegal access through a character pointer out of boundaries.
- int access through pointer out of your memory area to point out an illegal access through an integer pointer out of bounds.
- pointer access through pointer out of your memory area to point out an illegal access through a pointer to a pointer out of bounds.
- char assignment through pointer out of your memory area to point out a character pointer out of memory in an assignment.
- int assignment through pointer out of your memory area to point out an integer pointer out of memory in an assignment.
- illegal pointer alignment for int assignment to point out an illegal assignment through an integer pointer with a bad alignment.
- pointer assignment through pointer out of your memory area to point out a pointer out of memory in an assignment.
- illegal pointer alignment for pointer assignment to point out an illegal assignment through a pointer with a bad alignment.
- string access out of your memory area to point out an illegal string access or assignment in a built-in function, of course the fault is yours.

Next: About functions Up: Errors detected at run Previous: Errors detected at run