Skip to Content.
Sympa Menu

svadev - Re: [svadev] string literals

svadev AT lists.siebelschool.illinois.edu

Subject: Svadev mailing list

List archive

Re: [svadev] string literals


Chronological Thread 
  • From: John Criswell <criswell AT illinois.edu>
  • To: Matthew Wala <wala1 AT illinois.edu>
  • Cc: "svadev AT cs.uiuc.edu" <svadev AT cs.uiuc.edu>
  • Subject: Re: [svadev] string literals
  • Date: Sat, 5 Mar 2011 14:49:44 -0600
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev>
  • List-id: <svadev.cs.uiuc.edu>
  • Organization: University of Illinois

On 3/5/11 2:43 PM, Matthew Wala wrote:
It seems that SAFECode silently allows you to modify string literals,
even when the intended memory operation segfaults the original
program.
Shouldn't this be considered a memory safety error?

It depends on what you call a memory safety error.
:)

As far as SAFECode is concerned, writing into a string literal or into some other global memory object marked constant is okay because it is not an out-of-bounds write. SAFECode does not enforce read-only attributes; it will permit writes to memory that are marked constant, for example. Fortunately, such memory is usually made read-only by the OS, so the MMU enforces the read-only attribute of the memory object.

-- John T.


_______________________________________________
svadev mailing list
svadev AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/svadev





Archive powered by MHonArc 2.6.16.

Top of Page