[comp.sys.amiga.programmer] AllocMem fun and games on a 3000

aduncan@rhea.trl.OZ.AU (Allan Duncan) (05/31/91)

This is for an acquaintance who hasn't go net access,.

His problem was with AllocMem returning bad pointers.  This was in code
that had been running w/o problems on 2000's.

Turns out that he was over-running a string allocation by one byte.
This would (if the allocation was a multiple of 8) clobber the first byte
of the memseg pointer that followed it.  On 24 bit address space, this
was alright, since the overwrite was a null byte, but for 32 bit fast
addresses on the 3000, fireworks mode!

So, be warned.

Allan Duncan	ACSnet	 a.duncan@trl.oz
(+613) 541 6708	Internet a.duncan@trl.oz.au
		UUCP	 {uunet,hplabs,ukc}!munnari!trl.oz.au!a.duncan
Telecom Research Labs, PO Box 249, Clayton, Victoria, 3168, Australia.