It was discussed one of the starting lectures that when using main method with command line arguments
(int argc, string argv) then
argv can be used to access memory location which is not intended to be used.
Above is understandable but I couldn't understand how a bad guy can take advantage of it. If the code written is not to access out of bounds memory location using something like
argv then how a bad guy can exploit it?