Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

How to disable buffer security (/GS) for a particular function?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 27 Jun 2005 20:06 GMT
Hi,
I know, this question was posted a year ago (link below).
I wonder whether Microsoft changed it's mind and
fixed check_stack pragma to disable buffer security
for a single function.

I would hate to disable the security for the whole project
(or module) because of a single function.

Thank you
John

http://groups-beta.google.com/group/microsoft.public.dotnet.languages.vc/browse_
thread/thread/167bb3a3258177f6/f711f1925b8fa42a?q=check_stack+%2Fgs&rnum=6#f711f
1925b8fa42a

Ronald Laeremans [MSFT] - 27 Jun 2005 21:25 GMT
> Hi,
> I know, this question was posted a year ago (link below).
[quoted text clipped - 9 lines]
>
> http://groups-beta.google.com/group/microsoft.public.dotnet.languages.vc/browse_
thread/thread/167bb3a3258177f6/f711f1925b8fa42a?q=check_stack+%2Fgs&rnum=6#f711f
1925b8fa42a

Hi John,

No, the plan has not changed.

Note that you were hitting ab bug that since should be fixed. Can you
provide a new repro where your code is broken by /GS? Just send it to me
directly: ronaldl at microsoft dot com

Thanks.

Ronald
John - 27 Jun 2005 23:09 GMT
I guess you mistook me for the original poster.

No, I am not hitting any bug -
I am just using a small function as prototype
for stub generation and was very surprised that
the system crashed when I allocated a local array using
_alloca. Since there is no debugger available,
it took me a long time testing and disassembly reading
until I found this pesky call to __security_check_cookie.

John
John - 27 Jun 2005 23:12 GMT
Thank you for the reply.

I guess you mistook me for the original poster
(I am not).

No, I am not hitting any bug -
I am just using a small function as prototype
for stub generation and was very surprised that
the system crashed when I allocated a local array using
_alloca. Since there is no debugger available,
it took me a long time testing and disassembly reading
until I found this pesky call to __security_check_cookie.

John

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.