Invalid pointer addresses
David Collier-Brown
daveb at geac.UUCP
Mon Sep 12 03:12:56 AEST 1988
In article <12088 at steinmetz.ge.com> davidsen at crdos1.UUCP (bill davidsen) writes:
| I recently proofread a manual which stated that even calculating the
| value of an invalid address could cause a memory fault...
>From article <1988Sep9.164419.12461 at utzoo.uucp>, by henry at utzoo.uucp (Henry Spencer):
| This is correct. On single-linear-address-space machines, computing an
| invalid address just generates a meaningless number. [...]
| It depends on whether the designers were segment purists or not, and on
| precisely how they defined the format of an address and the semantics
| of arithmetic on it.
Minor point: if you underflow one one linear-address-space machine,
you get the "impossible" (too high) address error.
-dave (manufacturer unnamed to protect the guilty) c-b
--
David Collier-Brown. | yunexus!lethe!dave
78 Hillcrest Ave,. | He's so smart he's dumb.
Willowdale, Ontario. | --Joyce C-B
More information about the Comp.std.c
mailing list