From owner-cvs-all Fri Oct 25 9:25:19 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F2DF37B401; Fri, 25 Oct 2002 09:25:18 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F7DE43E65; Fri, 25 Oct 2002 09:25:18 -0700 (PDT) (envelope-from ume@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9PGOSmV004364; Fri, 25 Oct 2002 09:24:28 -0700 (PDT) (envelope-from ume@repoman.freebsd.org) Received: (from ume@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9PGOS9M004363; Fri, 25 Oct 2002 09:24:28 -0700 (PDT) Message-Id: <200210251624.g9PGOS9M004363@repoman.freebsd.org> From: Hajimu UMEMOTO Date: Fri, 25 Oct 2002 09:24:28 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/net getaddrinfo.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ume 2002/10/25 09:24:28 PDT Modified files: lib/libc/net getaddrinfo.c Log: - kill strcpy - port range check need to be done before htons. from deraadt - %d/%u audit - correct bad practice in the code - it uses two changing variables to manage buffer (buf and buflen). we eliminate buflen and use fixed point (ep) as the ending pointer. - use snprintf, not sprintf - pass correct name into q.name. from lukem@netbsd - sync comment Obtained from: KAME MFC after: 1 week Revision Changes Path 1.35 +56 -67 src/lib/libc/net/getaddrinfo.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message