From owner-cvs-all Sun Jun 14 05:54:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA02833 for cvs-all-outgoing; Sun, 14 Jun 1998 05:54:22 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA02824; Sun, 14 Jun 1998 05:54:20 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id FAA11719; Sun, 14 Jun 1998 05:53:41 -0700 (PDT) Date: Sun, 14 Jun 1998 05:53:41 -0700 (PDT) Message-Id: <199806141253.FAA11719@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/miscfs/procfs procfs_vnops.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk bde 1998/06/14 05:53:41 PDT Modified files: sys/miscfs/procfs procfs_vnops.c Log: Avoid a 64-bit division in procfs_readdir(). Fixed related overflows. Check args using the same expression as in fdesc and kernfs. The check was actually already correct, modulo overflow. It could be tightened up to either allow huge (aligned) offsets, treating them as EOF, or disallow all offsets beyond EOF. Didn't fix invalid address calculation &foo[i] where i may be out of bounds. Didn't fix shooting of foot using a private unportable dirent struct. Revision Changes Path 1.59 +6 -10 src/sys/miscfs/procfs/procfs_vnops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message