[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-inetutils] Ifconfig broken on GNU/Linux arch x86_64.
From: |
Mats Erik Andersson |
Subject: |
Re: [bug-inetutils] Ifconfig broken on GNU/Linux arch x86_64. |
Date: |
Thu, 23 Sep 2010 18:43:38 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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