BR 1091926: Bounds checking for command line parsing