On Sun, 6 Nov 2005 13:36:11 +0100 Tilman Sauerbeck <[EMAIL PROTECTED]>
babbled:

> Nathan Ingersoll <[EMAIL PROTECTED]> [2005-11-04 13:38]:
> > It's a trick to allocate the file node and name in one allocation instead of
> > two. Since we have the memory available for the name, the strcpy is then
> > used to copy the string into the allocated space.
> 
> Yeah, and it's even buggy. Horray. If the integer used for the byte
> count overflows, we'll end up with less bytes allocated than requested,
> which will blow.

which will happen only if  string needs > 2GB pf ram. the alloc would fail then
anyway and all sorts of badness will ensue. if u check - all those strings are
actuall safe as they are eithe rprovided b code itself directly or the strings
hen loaded have sizes that are parsed as ints anyway thus less than 9
(underflow) is dealt with. if not - let me know

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to