On Thu, 17 Jan 2013 13:12, henri.dor...@greenbone.net said:

> these functions a bit clumsy and unsafe (I see TOCTOU/race conditions
> and a possible stack overflow). Any reason for not using the functions

I noticed that the return value of fclose is not checked.  For a write
operation you won't have any guarantee that you actually wrote anything
out.  Checking the return value of fwrite is never enough.  At the very
least ferror needs to be checked too.  Even then you won't catch all
errors.


Salam-Shalom,

   Werner


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel

Reply via email to