473,395 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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/...11f1925b8fa42a

Nov 17 '05 #1
3 3188
John wrote:
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/...11f1925b8fa42a

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
Nov 17 '05 #2
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

Nov 17 '05 #3
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

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Greg | last post by:
I am developing an application where I need to secure a workstation for periods of time. I can use BlockInput to stop users from task switching or messing with the keyboard, but I would like to...
3
by: dw | last post by:
Hi, all. Are there specific security precautions (input validations for example) that are documented somewhere to prevent hackers from compromising a credit card ASP application? In particular, can...
3
by: John | last post by:
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...
2
by: techfuzz | last post by:
I scoured this group and others looking for the best way to disable a button after the first click to prevent multiple submissions, but never did find anything that worked like they said it would. ...
2
by: Andre Ranieri | last post by:
I'm retouching our corporate web site that, among other things, allows customers to log in and pay their invoices online. I noticed that on the checkout page, the credit card number textbox...
11
by: Ejaz ul Haq | last post by:
Dear All, I have upgraded my source code from VS 2003 to VS 2005, and my code is breaking due to the _SECURE_ATL macro in some methods of ATL. As it is executed all the times though there is also...
2
by: rn5a | last post by:
In a shopping cart app, assume that a user has placed 4 orders (each order has a corresponding OrderID which will be unique). When he comes to MyCart.aspx, by default, the details of his last order...
70
by: junky_fellow | last post by:
Guys, If main() calls some function func() and that function returns the error (errno), then does it make sense to return that value (errno) from main. (in case main can't proceed further) ? ...
2
by: emlimeng | last post by:
Hi everyone It is maybe a questions asked many times. I am trying to limite users' access to Database Windows to improve security. I am working on an Access Data Project in Access 2000 format as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.