473,750 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3221
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_chec k_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_chec k_cookie.
John

Nov 17 '05 #4

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

Similar topics

5
5921
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 disable Ctrl-Alt-Delete. It seems there seems to be only one real way I know about: Write a replacement Gina Driver to eat the keyboard events I dont want. Does anyone have a good template for this in Visual Basic .Net?
3
2914
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 we prevent a buffer overflow by using the LEFT function to grab only the necessary characters from the credit card text field? Your help is much appreciated. Thanks.
3
212
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 would hate to disable the security for the whole project (or module) because of a single function. Thank you
2
13273
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. I went ahead and wrote my own bit of code so I'm sharing it here for everyone. Even though it doesn't really disable the button by greying it out, it prevents the multiple submissions which it what I was attempting to prevent all along. ...
2
2709
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 autofills with past entries for that textbox. My development workstation has the Google Toolbar installed; I'm not sure whether the autofill functionality is native to the browser or coming from the Google Toolbar. In either case, is there any way...
11
5303
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 a non-secure block of code defined alongwith it. Is there any way of disabling this macro...as mere #define _SECURE_ATL 0, in the stdafx.h or somewhere between the code is not working. Regards,
2
3225
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 he had placed will be displayed in a DataList. Also assume that the OrderID of the last order is 13. The details of the earlier orders placed by a particular user (when the user places more than 1 order) can be viewed by clicking links. The...
70
3609
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) ? eg. int main(void) {
2
8467
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 front end and SQL Server as backend. The ideas in my mind so far are: • Disable the F11 key • Disable “Unhind” function on “Window” on Menu bar, so users can’t go to Window-> Unhind to reopen the database window. • Disable the SHIFT key – I’ve...
0
9000
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9396
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6804
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4713
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.