Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #1137

Self-modifying code, Function pointers & { Safety, Security}

From Seima Rao <seimarao@gmail.com>
Newsgroups comp.compilers
Subject Self-modifying code, Function pointers & { Safety, Security}
Date 2014-03-07 21:34 +0530
Organization Compilers Central
Message-ID <14-03-015@comp.compilers> (permalink)

Show all headers | View raw


Hi,

    We are used to separation of code from data at the language level.
    However, two features disupt security :

    i) self-modifying code

     i.e. writing to code space

    ii) functions residing in data space

Are there safety & security solutions possible for the above two
safety, security holes ?

Sincerely,
Seima Rao.
[The major reasons for self-modifying code historically were for
address modification for indexing and subroutine returns.  Index
registers and indirect addressing provide instruction modification as
the instruction is executed, making those modifications go away.  For
runtime code generation, there have been a variety of approaches to
controlled addition of code to running programs, which I could dig up
if people care. -John]

Back to comp.compilers | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Self-modifying code, Function pointers & { Safety, Security} Seima Rao <seimarao@gmail.com> - 2014-03-07 21:34 +0530
  Re: Self-modifying code, Function pointers & { Safety, Security} Kaz Kylheku <kaz@kylheku.com> - 2014-03-09 20:36 +0000
    Re: Self-modifying code, Function pointers & { Safety, Security} Terrence Enger <tenger@iseries-guru.com> - 2014-03-15 09:29 -0400
  Re: Self-modifying code, Function pointers & { Safety, Security} Martin Ward <martin@gkc.org.uk> - 2014-03-14 14:15 +0000
  Re: Self-modifying code, Function pointers & { Safety, Security} seimarao@gmail.com - 2014-03-20 00:42 -0700
    Re: Self-modifying code, Function pointers & { Safety, Security} federation2005@netzero.com - 2014-04-13 12:41 -0700
      Re: Self-modifying code, Function pointers & { Safety, Security} Stefan Monnier <monnier@iro.umontreal.ca> - 2014-04-16 09:18 -0400

csiph-web