From owner-cvs-lib Tue Jun 25 11:54:55 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA28566 for cvs-lib-outgoing; Tue, 25 Jun 1996 11:54:55 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA28537; Tue, 25 Jun 1996 11:54:44 -0700 (PDT) Date: Tue, 25 Jun 1996 11:54:44 -0700 (PDT) From: Bruce Evans Message-Id: <199606251854.LAA28537@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/i386/sys brk.S Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 96/06/25 11:54:43 Modified: lib/libc/i386/sys brk.S Log: Fixed comparisons so that preposterously large (>= 0x80000000) brk values aren't silently converted to minbrk. This stops malloc(INT_MAX) from dumping core. Small values are still silently converted. They should be an error. sbrk() doesn't do any range checking or conversions or overflow checking. Moved PIC_EPILOGUE invocation to a more natural place where it obviously doesn't interfere with the comparison. Revision Changes Path 1.4 +5 -5 src/lib/libc/i386/sys/brk.S