On Wed, 22 Aug 2012 08:40:36 +0200 rustyBSD <rusty...@gmx.fr> said:

> Le 22/08/2012 05:27, Carsten Haitzler (The Rasterman) a écrit :
> > On Tue, 21 Aug 2012 18:01:05 +0200 rustyBSD <rusty...@gmx.fr> said:
> >
> >> Hi,
> >> == e/src/modules/illume-keyboard/e_kbd_int.c ==
> >> line 972:   if (sscanf(buf, "%4000s", str) != 1) continue;
> >>
> >> str is declared like this: char str[PATH_MAX];
> >>
> >> Here, if PATH_MAX is < 4000, it could overflow.
> >> On my bsd, PATH_MAX is 1024, and I get a
> >> warning.
> >>
> >> Idem at line 1015 and 1030.
> > ok- fixed buffer. :)
> >
> Forgot line 1015:
> 
> char label[PATH_MAX];
> if (sscanf(buf, "%*s %4000s", label) != 1) continue;

mike went thru and rabidly did this in lots of other places too :)


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to