<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] Fix -d command line option



Hi,

* Rocco Rutte [06-05-20 12:54:28 +0000] wrote:

[...]

Okay, I've been looking at more places (though there are fewer than I thought) and mutt happily accepts nearly random data like:

'mutt -d foobar'
'score ~= foobar'

or jump to message '4foobar' which is IMHO wrong (the part for the message number currently only checks whether the first character is a number so I guess checking input is the way to go).

I've made a patch replacing the most important uses of atoi() by mutt_atoi() with error handling. I'm not sure if it's also a good idea to use it for parsing server reponses and the like.

The current patch is at:

  
<http://user.cs.tu-berlin.de/~pdmef/mutt/patches/patch-1.5.11-cvs.pdmef.atoi.1.diff>

  bye, Rocco
--
:wq!