• Sam Lantinga's avatar
    Fixed bug #855 · dc78cb75
    Sam Lantinga authored
     Ludwig Nussel      2009-10-18 06:31:52 PDT
    
    an mprotect call was added to fix bug 528. However that results in a buffer
    that allows writing and code execution. Ie the no-execute security features of
    modern operating systems are defeated this way. Two mprotect calls are needed.
    One to make the buffer executable but not writeable when done and another one
    to make the buffer writeable again if the content needs to be changed.
    
    --HG--
    branch : SDL-1.2
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404112
    dc78cb75
SDL_stretch.c 8.06 KB