24 Apr
2006
24 Apr
'06
10:49
On Monday 24 April 2006 09:13, Per Jessen wrote:
I've got a suspected stack corruption, and as it involves an external library, I'm trying to determine who's to blame - my code or the library code. Without exception, the resulting segfault always happens in the external library (libclamav). Equally without exception, if I omit the single call to the library (cl_scanfile()), I see no problems.
That might easily be a usage problem (who owns what resource, who has to free
allocated memory, ...).
You might want to run your application with "valgrind" and double-check all
problems it reports.
CU
--
Stefan Hundhammer