glibc/malloc
Greg McGary 2ed5fd9a2a update
2000-07-26  Greg McGary  <greg@mcgary.org>

	* Makeconfig (+link-bounded, link-libc-bounded,
	link-extra-libs-bounded): New variables.
	(built-program-cmd): Omit $(run-program-prefix) for static BP tests.
	* Makerules (do-tests-clean, common-mostlyclean): Remove BP test files.
	* Rules (tests-bp.out): New variable.
	(tests): Conditionally add BP tests.
	(binaries-bounded): Add variable and associated rule.
	* csu/Makefile [build-bounded] (extra-objs, install-lib):
	Move conditional stuff after place where condition is defined.

	* malloc/malloc.c (bp-checks.h): Add #include.
	(mem2chunk, chunk_at_offset, bin_at): Wrap BOUNDED_1 around expression.
	(_bin_at): Add unbounded version of bin_at.
	(IAV, chunk_alloc): Use unbounded _bin_at.
	(mALLOc, rEALLOc, chunk_realloc, mEMALIGn, cALLOc,
	chunk2mem_check, realloc_check, malloc_starter, malloc_atfork):
	Wrap BOUNDED_N around return value.
	(chunk_realloc): Adjust oldsize once.

	* sysdeps/generic/bp-checks.h (__memchr): Remove incorrect decl.
	(__ubp_memchr): Add correct decl.
	(_CHECK_STRING): Use __ubp_memchr.
	* sysdeps/alpha/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
	New alias for unbounded-pointer __memchr.
	* sysdeps/i386/memchr.S: Likewise.
	* sysdeps/ia64/memchr.S: Likewise.
	* sysdeps/m68k/memchr.S: Likewise.
	* sysdeps/sparc/sparc32/memchr.S: Likewise.
	* sysdeps/sparc/sparc64/memchr.S: Likewise.
	* sysdeps/vax/memchr.s: Likewise.

	* sysdeps/i386/strtok.S: Fix bounds checks to pass tests.
	(SAVE_PTR): New macro.  (save_ptr): Expand size as BP.
	(strtok): Don't bother to write into SAVE_PTR when returning NULL.
	* sysdeps/i386/i686/strtok.S: Likewise.
	* sysdeps/i386/bp-asm.h (RETURN_BOUNDED_POINTER,
	RETURN_NULL_BOUNDED_POINTER): Use %ecx as the scratch register.

	* sysdeps/i386/bits/string.h [!__BOUNDED_POINTERS__]: Disable inlines.
	* sysdeps/i386/i486/bits/string.h [!__BOUNDED_POINTERS__]: Likewise.

	* sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path): Copy
	bounds of copy_result to mount_proc.
2000-07-26 18:21:25 +00:00
..
Depend Update. 1999-10-04 22:59:43 +00:00
Makefile Update. 2000-07-23 01:23:29 +00:00
Versions Update. 2000-04-14 17:44:22 +00:00
malloc.c update 2000-07-26 18:21:25 +00:00
malloc.h Update. 1999-12-19 19:51:55 +00:00
mallocbug.c update from main archive 961207 1996-12-08 08:01:13 +00:00
mcheck-init.c update from main archive 961220 1996-12-22 00:32:43 +00:00
mcheck.c Update. 2000-03-28 17:33:37 +00:00
mcheck.h Update. 2000-03-28 17:33:37 +00:00
memusage.c Update. 2000-06-20 04:46:22 +00:00
memusage.sh Update. 2000-06-20 04:46:22 +00:00
memusagestat.c Update. 2000-06-20 04:46:22 +00:00
mtrace.c (tr_freehook): Return immediately if ptr is NULL. 2000-07-13 18:40:43 +00:00
mtrace.pl Exit with exit code 1 if any leak was detected. 2000-07-07 08:03:07 +00:00
obstack.c Update. 1999-01-23 22:50:17 +00:00
obstack.h Updated. 1999-03-29 02:31:34 +00:00
set-freeres.c Update. 1999-12-01 21:08:31 +00:00
thread-m.h Update. 1999-12-10 04:37:40 +00:00
tst-calloc.c Update. 2000-04-12 23:53:40 +00:00
tst-malloc.c Update 1999-07-07 12:14:17 +00:00
tst-mtrace.c Test program for mtrace. 2000-07-07 03:00:06 +00:00
tst-mtrace.sh Update. 2000-07-23 01:23:29 +00:00
tst-valloc.c Update. 2000-02-22 05:25:08 +00:00