Commit replaces atoi() and strtoul() calls with wrappers in order to prevent possible int *flow via user input. Also, limits on user provided values are applied wherever possible. Reported-by: Dune Idaho