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

  • Thread starter Thread starter John
  • Start date Start date
John said:
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...42a?q=check_stack+/gs&rnum=6#f711f1925b8fa42a
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
 
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
 
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
 
Back
Top