Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: Stack corruption when you call intrinsic functions in Visual C++ projects in Visual Studio 2012


View products that this article applies to.


This article describes an issue that occurs when you call intrinsic functions (the /Oi compiler setting) in Visual C++ projects after you upgrade to Microsoft Visual Studio 2012 Update 4. If you run the application in Debug/Win32, the application crashes, and you may receive the following error message:
Unhandled exception at <address> in <exe>: Stack cookie instrumentation code detected a stack-based buffer overrun.

A hotfix is available to resolve this issue. The hotfix has a prerequisite that you must have Microsoft Visual Studio 2012 Update 4 installed. 

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix Download Available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix Download Available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.



Restart requirement

You may have to restart the computer after you install the hotfix if the affected files are not being used at the time of installation. We recommend that you close all Visual Studio 2012-related components before you install the hotfix.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kb, kbexpertiseadvanced, kbsurveynew, kbfix, kbhotfixserver, kbqfe, kbautohotfix

↑ Back to the top

Article Info
Article ID : 2971939
Revision : 2
Created on : 6/15/2020
Published on : 6/15/2020
Exists online : False
Views : 233