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


Groups > comp.compilers > #1137

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.snarked.org!news.linkpendium.com!news.linkpendium.com!news.iecc.com!.POSTED!nerds-end
From Seima Rao <seimarao@gmail.com>
Newsgroups comp.compilers
Subject Self-modifying code, Function pointers & { Safety, Security}
Date Fri, 7 Mar 2014 21:34:15 +0530
Organization Compilers Central
Lines 23
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <14-03-015@comp.compilers> (permalink)
NNTP-Posting-Host news.iecc.com
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace miucha.iecc.com 1394383125 80087 64.57.183.58 (9 Mar 2014 16:38:45 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Sun, 9 Mar 2014 16:38:45 +0000 (UTC)
Keywords question, comment
Posted-Date 09 Mar 2014 12:38:45 EDT
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref csiph.com comp.compilers:1137

Show key headers only | 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