Xref: utzoo comp.bugs.4bsd:1684 comp.std.c:4207 comp.lang.c:35594 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!bbn.com!papaya.bbn.com!rsalz From: rsalz@bbn.com (Rich Salz) Newsgroups: comp.bugs.4bsd,comp.std.c,comp.lang.c Subject: Re: Safe coding practices (was Re: Bug in users command) Message-ID: <3238@litchi.bbn.com> Date: 28 Jan 91 22:03:45 GMT References: <22311:Jan2502:34:1191@kramden.acf.nyu.edu> <22879@well.sf.ca.us> <23975:Jan2516:36:5891@kramden.acf.nyu.edu> Followup-To: comp.bugs.4bsd Organization: BBN Systems and Technology, Inc. Lines: 10 In <23975:Jan2516:36:5891@kramden.acf.nyu.edu> brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes: >Some versions of realloc() return the original pointer rather than 0 if >they run out of memory. Than such versions are seriously broken, since returning the original pointer is a valid thing to do if there already was enough space allocated. I would not code for such systems. -- Please send comp.sources.unix-related mail to rsalz@uunet.uu.net. Use a domain-based address or give alternate paths, or you may lose out.