Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Data Execution Prevention sysutil fix in DBISAM and other apps.
Fri, Apr 21 2006 12:53 AMPermanent Link

Graham Wood
Is anyone using the LanguagesDEPfix.pas file from Borland - DevCentral to get around the
Data Execution Prevention issue?

Is it a 100% fix?  Am using D7 and don't want to use D2005/6 just to fix this if it pops up.

Thanks.

PS:  Tim, seeing as how this affected your work, did you guys use LanguagesDEPfix.pas to
fix the issue, or did you change your code?  If so, is there a simple - "Find this,
replace it with that" tip you could pass on?

Thanks... again.
Fri, Apr 21 2006 6:19 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Graham,

<< PS:  Tim, seeing as how this affected your work, did you guys use
LanguagesDEPfix.pas to fix the issue, or did you change your code? >>

We changed our code so that we used our own enumerator callback function for
list of installed languages in the OS.

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Apr 21 2006 10:26 AMPermanent Link

"Walter Matte"
Do you have a link to LanguagesDEPfix.pas?

Thanks.

"Graham Wood" <gdwfleetware@netscape.net> wrote in message
news:55B37ABB-7196-4356-9AF9-67CAC36EFD62@news.elevatesoft.com...
> Is anyone using the LanguagesDEPfix.pas file from Borland - DevCentral to
> get around the
> Data Execution Prevention issue?
>
> Is it a 100% fix?  Am using D7 and don't want to use D2005/6 just to fix
> this if it pops up.
>
> Thanks.
>
> PS:  Tim, seeing as how this affected your work, did you guys use
> LanguagesDEPfix.pas to
> fix the issue, or did you change your code?  If so, is there a simple -
> "Find this,
> replace it with that" tip you could pass on?
>
> Thanks... again.
>

Fri, Apr 21 2006 10:39 AMPermanent Link

"Walter Matte"
OK I found it in CodeCentral

http://codecentral.borland.com/Item.aspx?id=23411

The Comments in the unit states it has been Tested in D7.


unit LanguagesDEPfix;

{ Patch for Data Execution Prevention (DEP) problems with
SysUtils.TLanguages. }
{ In the Delphi RTL the TLanguages constructor dynamically builds and
executes }
{ machine code in the stack segment without setting the
PAGE_EXECUTE_READWRITE }
{ or PAGE_EXECUTE_WRITECOPY bits. It appears that that code doesn't run
  }
{ systems that have DEP enabled - e.g. WinXP SP2, Win2003 SP1. Note
    }
{ Win2003 SP1 has DEP activated by
        }
{ This problem is fixed in the Delphi 2005
    }
{                                                                            
  }
{
      }
{ Put this unit as the first unit in the uses clause of the source of
   }
{ project. At least make sure this unit is listed *before* the first
SysUtils. }
{ Tested with D5, D6 and
   }
{                                                                            
  }
{ Author: Sasan Adami -
               }
{ Date  : 20 july
    }
{ Disclaimer: use at your own
     }


Thanks for making me aware!!

Walter



"Walter Matte" <walter_@_interlog.com> wrote in message
news:D346A1F2-A722-46C6-81AF-BB718C152DC3@news.elevatesoft.com...
> Do you have a link to LanguagesDEPfix.pas?
>
> Thanks.
>
> "Graham Wood" <gdwfleetware@netscape.net> wrote in message
> news:55B37ABB-7196-4356-9AF9-67CAC36EFD62@news.elevatesoft.com...
>> Is anyone using the LanguagesDEPfix.pas file from Borland - DevCentral to
>> get around the
>> Data Execution Prevention issue?
>>
>> Is it a 100% fix?  Am using D7 and don't want to use D2005/6 just to fix
>> this if it pops up.
>>
>> Thanks.
>>
>> PS:  Tim, seeing as how this affected your work, did you guys use
>> LanguagesDEPfix.pas to
>> fix the issue, or did you change your code?  If so, is there a simple -
>> "Find this,
>> replace it with that" tip you could pass on?
>>
>> Thanks... again.
>>
>
>

Fri, Apr 21 2006 4:07 PMPermanent Link

"Clive"
Thanks for the link, I wasnt aware of this issue either.

"Walter Matte" <walter_@_interlog.com> wrote in message
news:A89D2B30-C777-44E6-9B94-A91A9E234254@news.elevatesoft.com...
> OK I found it in CodeCentral
>
> http://codecentral.borland.com/Item.aspx?id=23411
>
> The Comments in the unit states it has been Tested in D7.
>
>
> unit LanguagesDEPfix;
>
> { Patch for Data Execution Prevention (DEP) problems with
> SysUtils.TLanguages. }
> { In the Delphi RTL the TLanguages constructor dynamically builds and
> executes }
> { machine code in the stack segment without setting the
> PAGE_EXECUTE_READWRITE }
> { or PAGE_EXECUTE_WRITECOPY bits. It appears that that code doesn't run }
> { systems that have DEP enabled - e.g. WinXP SP2, Win2003 SP1. Note }
> { Win2003 SP1 has DEP activated by }
> { This problem is fixed in the Delphi 2005 }
> {                                                                          
>    }
> { }
> { Put this unit as the first unit in the uses clause of the source of }
> { project. At least make sure this unit is listed *before* the first
> SysUtils. }
> { Tested with D5, D6 and }
> {                                                                          
>    }
> { Author: Sasan Adami - }
> { Date  : 20 july }
> { Disclaimer: use at your own }
>
>
> Thanks for making me aware!!
>
> Walter
>
>
>
> "Walter Matte" <walter_@_interlog.com> wrote in message
> news:D346A1F2-A722-46C6-81AF-BB718C152DC3@news.elevatesoft.com...
>> Do you have a link to LanguagesDEPfix.pas?
>>
>> Thanks.
>>
>> "Graham Wood" <gdwfleetware@netscape.net> wrote in message
>> news:55B37ABB-7196-4356-9AF9-67CAC36EFD62@news.elevatesoft.com...
>>> Is anyone using the LanguagesDEPfix.pas file from Borland - DevCentral
>>> to get around the
>>> Data Execution Prevention issue?
>>>
>>> Is it a 100% fix?  Am using D7 and don't want to use D2005/6 just to fix
>>> this if it pops up.
>>>
>>> Thanks.
>>>
>>> PS:  Tim, seeing as how this affected your work, did you guys use
>>> LanguagesDEPfix.pas to
>>> fix the issue, or did you change your code?  If so, is there a simple -
>>> "Find this,
>>> replace it with that" tip you could pass on?
>>>
>>> Thanks... again.
>>>
>>
>>
>
>

Image