Re: memory cruption problem
Roy Marples
Sat Jul 19 09:15:20 2014
Hi
On 2014-07-19 03:04, flxue2010 wrote:
i just locally compile and test with version 6.4.0 source code,
and found that after configurated with source code provided getline()
function without "EMBEDDED_CONFIG" defined and run dhcpcd cmd with -f
option,
there it always encounter memory cruption problem for lfree called by
read_config() in file if-options.c
after check the code, i found the problem is caused by getline()
implemented in the file compat/getline.c
and i check the latest 6.4.2 version code, the problem should still
exists.
so could you help confirm if the case should be fixed or it is just my
fault to mistake some part.
thanks.
Aside from your HTML email being hard to read, your analysis of the
error is fine.
Attached is a simpler patch which should fix your problem.
My testing time is limited today and I was unable to reproduce it under
valgrind so if you can test it and get back I'll commit it.
Thanks!
Roy
Archive administrator: postmaster@marples.name