www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/24/14:44:32

Date: Tue, 24 May 94 14:51:36 EST
From: acmq AT gamma DOT coe DOT ufrj DOT br (Antonio Carlos Moreirao de Queiroz)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: memory allocation

Hi,

Looking at what malloc was doing, It appeared to me that all the pointers
point to addresses at low memory that contain the actual pointers to the data.
Why this scheme? Is it safe when the allocated data contain pointers to more
data?
I suspect of something wrong. The memcopy function is corrupting data when
copying data pointed by pointers that are in allocated areas, but working
correctly with simple pointers. More tests are needed to verify what is
happening, but I don't have time to do them.

Antonio C. M. de Queiroz

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019