...
This compliant solution defines an acceptable range for table size as 1 to MAX_TABLE_SIZE
. Note that the size parameter is typed as size_t
and is by definition unsigned, thus, it need not be checked that it is negative (see INT01-A. Use size_t for all integer values representing the size of an object).
...