Date: Sat, 14 Apr 2007 17:42:42 +0200 From: Roman Divacky <rdivacky@freebsd.org> To: current@freebsd.org Subject: off-by-one error in sbin/atm Message-ID: <20070414154242.GA82355@freebsd.org>
next in thread | raw e-mail | index | archive | help
hi
in /usr/src/sbin/atm/atmconfig/diag.c on line 871 there's
off-by-one error. array of size IFNAMSIZ is being written
on IFNAMSIZ, ie. one byte after the array.
this code
ifr.ifr_name[IFNAMSIZ] = '\0';
should be
ifr.ifr_name[IFNAMSIZ-1] = '\0';
thnx for fixing it :)
roman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070414154242.GA82355>
