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

Re: [Mutt] #2901: wrong parameter micalg with mutt 1.5.15 and gpgme



On Tue, Jun 05, 2007 at 03:38:45PM -0000, Mutt wrote:

>  +      for (i = 4; buf[i] && i < sizeof buf; i++)
>  +       buf[i] = tolower(buf[i]);

If I've understood it right, if sizeof(buf) < 4 that loop will dereference
off the end of the array before checking the boundary condition. Maybe
switch the checks around?

-- 
Paul

Attachment: signature.asc
Description: Digital signature