sbin/hammer: check strtol()/strtoll() results to avoid irrelevant history
queries
- Check errno for possible overflow/underflow by strtol()/strtoll() in
order to avoid ioctl with irrelevant offset/length.
- Examples
# hammer -vvv history@
11111111111111111111111111111111,111 ./out
Result too large: @
11111111111111111111111111111111
# hammer -vvv history@111,
11111111111111111111111111111111 ./out
Result too large: ,
11111111111111111111111111111111
# hammer -vvv history@-
11111111111111111111111111111111,111 ./out
Result too large: @-
11111111111111111111111111111111
# hammer -vvv history@111,-
11111111111111111111111111111111 ./out
Result too large: ,-
11111111111111111111111111111111