🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2039

Re: 'Freeing' storage with realloc

#2039
From: Dan Pop
Date: Sat, 17 Feb 1996 17:52
14 lines
942 bytes
In <4g1771$ms3@solutions.solon.com> jason@nc.bhpese.oz.au (Jason Tyler) writes:

>No. Just try writing a little program that malloc()s something huge, then
>realloc() it down to something tiny, then writes to the end of the original
>(huge) buffer. You should get a segfault.

s/should/may

Dan
--
Dan Pop
CERN, CN Division
Email: danpop@mail.cern.ch 
Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
Technical Details
Message-ID: <4g54lg$ag1@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4fvhro$e7u@solutions.solon.com> <4g1771$ms3@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: danpop@mail.cern.ch (Dan Pop)
Newsgroups: comp.lang.c.moderated
Subject: Re: 'Freeing' storage with realloc
Date: 17 Feb 1996 11:52:48 -0600
Organization: CERN European Lab for Particle Physics
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4g54lg$ag1@solutions.solon.com>
References: <4fvhro$e7u@solutions.solon.com> <4g1771$ms3@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Newsreader: NN version 6.5.0 #7 (NOV)