Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this compliant solution, len is declared as a size_t to so there is no possibility of this variable having a negative value and bypassing the range check.

...