torsdag den 23 september 2010 klockan 00:56 skrev Mats Erik Andersson detta: > onsdag den 22 september 2010 klockan 18:47 skrev Mats Erik Andersson detta: > > Hello, > > > > the code in > > > > ifconfig/system/linux.c > > > > is broken on my Debian Squeeze amd64 machine. I am starting from > > a fresh git checkout for x86 and x86_64, but the latter fails in > > execution. > > I am not yet certain that I have found the fault, but I have certainly > found a case of buffer overrun in said function. It is easy to construct > unusual strings -- not expected in /proc/net/dev though -- that would brake > the code as it was until now.
The patch in the previous message is in fact the cure for the failing functionality on x86_64. By switching the patch on and off in ifconfig/system/linux.c I can reproducibly reintroduce and resolve the error at will. The previous comment on strange name strings was a false negative, since it was caused by an incorrect message in a printf statement I had introduced in "ifconfig/options.c". The purpose was for tracking the bug down. Sorry for that noise! The patch is valid, though. Mats E A