From owner-freebsd-questions@FreeBSD.ORG Wed Aug 6 15:07:15 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C0E7EB38 for ; Wed, 6 Aug 2014 15:07:15 +0000 (UTC) Received: from mail-we0-x234.google.com (mail-we0-x234.google.com [IPv6:2a00:1450:400c:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E15727E8 for ; Wed, 6 Aug 2014 15:07:15 +0000 (UTC) Received: by mail-we0-f180.google.com with SMTP id w61so2784421wes.39 for ; Wed, 06 Aug 2014 08:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=zm0n2yUW01AbYRslJuws2YcrW8zVCbHhSMpO2BB1NHU=; b=mHnDDSvPotWjFiFvmws9SOBuchyrZcsyCPX+XVVOAV4nj1w056OEjuF1DCxIyt53AY DE1+Vd04SPzr6u6pdttirtIzAz3A7e/SYWU9nIsEPgySEVj+JVLNDk/JNg5ip7ebYjFy Rh8nLB5+1lgBa27IMy4pc6bIwOUP/nfhcK7FdgpCJpsQbVWAlxLCENbwtlXRmPaasN2L BQar6RIDFEu0RB+miqIi9WQIFaICBfn2f7mDuXy4b6ujqYlQSxppunfmke3lu3qxiWyI N0lVRRug396hibHMJon2kmFIUcI4RMMLpDsZPMVO3B+RQUSwiLyNFPf3+BqksHYb7WOv ZZXA== X-Received: by 10.180.189.139 with SMTP id gi11mr13658465wic.51.1407337633341; Wed, 06 Aug 2014 08:07:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.57.180 with HTTP; Wed, 6 Aug 2014 08:06:53 -0700 (PDT) From: Brian Frisbie Date: Wed, 6 Aug 2014 08:06:53 -0700 Message-ID: Subject: Error in 3.3. Buffer Overflows To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2014 15:07:15 -0000 Hello, I believe there's a small error in the document http://www.freebsd.org/doc/en/books/developers-handbook/secure-bufferov.html For "realpath(char *path, char resolved_path[])" the description is "May overflow the path buffer". I believe it should read: "May overflow the *resolved_*path buffer" based on the definition of realpath() found here: http://pubs.opengroup.org/onlinepubs/009695399/functions/realpath.html Cheers, -Brian