From owner-freebsd-current@FreeBSD.ORG Sat Apr 14 15:42:46 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1326616A402 for ; Sat, 14 Apr 2007 15:42:46 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id C64AF13C448 for ; Sat, 14 Apr 2007 15:42:45 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id E700A8BD0DA for ; Sat, 14 Apr 2007 17:42:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZuRWBjKg2K4u for ; Sat, 14 Apr 2007 17:42:42 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id DA9FE66C9AE for ; Sat, 14 Apr 2007 17:42:42 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.13.8/8.13.8/Submit) id l3EFgg5t082384 for current@freebsd.org; Sat, 14 Apr 2007 17:42:42 +0200 (CEST) (envelope-from rdivacky) Date: Sat, 14 Apr 2007 17:42:42 +0200 From: Roman Divacky To: current@freebsd.org Message-ID: <20070414154242.GA82355@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Cc: Subject: off-by-one error in sbin/atm X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2007 15:42:46 -0000 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