Skip to Content.
Sympa Menu

svadev - [svadev] runtime-check clarification

svadev AT lists.siebelschool.illinois.edu

Subject: Svadev mailing list

List archive

[svadev] runtime-check clarification


Chronological Thread 
  • From: Daniel Huang <dan.e.huang AT gmail.com>
  • To: "<svadev AT cs.illinois.edu>" <svadev AT cs.illinois.edu>
  • Subject: [svadev] runtime-check clarification
  • Date: Sun, 24 Feb 2013 00:58:12 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev/>
  • List-id: <svadev.cs.uiuc.edu>

Hi Svadev,

Since the boundscheck function does not take an object length or know the pointer's type, what does it mean for a pointer to be in-bounds? For example, if I had a pointer to the last byte in a memory object, would calling boundscheck give me a rewrite pointer or a regular pointer? It's not clear to me what happens in this situation, since if I originally had an i8 pointer, it would be in-bounds, but if I had an i32 pointer, it would be out of bounds. However, the boundscheck function does not have access to the pointer's type (or size), so which does it pick? This also seems to imply that a boundscheck must always be followed by a poolcheck, where the poolcheck specifies the object length. Could I get some clarification on what a boundscheck does?

Thanks,
Dan



Archive powered by MHonArc 2.6.16.

Top of Page