Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site hcr.UUCP Path: utzoo!hcr!mike From: mike@hcr.UUCP (Mike Tilson) Newsgroups: net.unix-wizards Subject: Re: brk's zero-fill behavior on VAXen Message-ID: <2447@hcr.UUCP> Date: Wed, 5-Nov-86 09:51:43 EST Article-I.D.: hcr.2447 Posted: Wed Nov 5 09:51:43 1986 Date-Received: Fri, 7-Nov-86 01:02:12 EST References: <7208@elsie.UUCP> <5142@brl-smoke.ARPA> Organization: Human Computing Resources, Toronto Lines: 13 Several people have mentioned that it is important to clear memory newly allocated to a process, for security reasons (since otherwise a program could continually allocate memory in the hope of finding interesting or secret data left over from previous processes.) I'd like to point out that there is another very good reason to set newly allocated memory to a fixed value: buggy programs are much less likely to exhibit non-deterministic behavior, which makes it much easier to fix problems. If newly allocated memory were initialized with random values, then tracking down wild pointers, etc., would be much harder. /Michael Tilson, HCR, {utzoo,decvax,...}!hcr!mike