Home Dashboard Directory Help

ATL CRBMap::Lookup code analysis markup issue by Jsamuel



Sign in
to vote
Type: Bug
ID: 789669
Opened: 6/6/2013 6:01:42 PM
Access Restriction: Public
User(s) can reproduce this bug


The Code Analysis markup for CRBMap::Lookup in atlcoll.h does not have the _Success_(return) annotation, and as such any code that uses the CRBMap will trigger the warning:

warning C6101: Returning uninitialized memory 'value'. A successful path through the function does not set the named _Out_ parameter. Annotate this function with _Success_(return) if returning FALSE indicates failure.:
Lines: 4233, 4237, 4238, 4239, 4233    
c:\program files (x86)\microsoft visual studio 11.0\vc\atlmfc\include\atlcoll.h line 4233

Sign in to post a comment.
Posted by Microsoft on 4/29/2014 at 12:30 PM
Thank you for reporting this issue. This issue has been fixed in Visual Studio 2013. You can install a trial version of Visual Studio 2013 with the fix from: http://go.microsoft.com/?linkid=9832436
Posted by Microsoft on 6/24/2013 at 4:31 PM
Thanks for reporting this bug Jsamuel, this is now fixed in Dev12.
Posted by Microsoft on 6/17/2013 at 1:49 AM
Thanks for your response.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Jsamuel on 6/12/2013 at 5:44 PM
Have recompressed as a ZIP, rather than RAR, and uploaded to the workspace below as:
FeedbackID-789669 MFCCRBMapLookupWarning.zip
Posted by Microsoft on 6/10/2013 at 11:23 PM
Hi Jsamuel,

We can't open the file you provided. Could you please upload it to the following workspace?
Password: 4[mfysk2[$]QM

Please zip the file and use "FeedbackID-789669" as prefix of the file name.

Microsoft Visual Studio Connect Support Team
Posted by Jsamuel on 6/10/2013 at 4:10 PM
Have attached a sample MFC DLL wizard project with the required 3 lines of code added. Run code analysis over the project to see the above warning.
Posted by Microsoft on 6/6/2013 at 11:19 PM
Thank you for submitting feedback on Visual Studio and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a demo project to demonstrate this issue so that we can conduct further research?

Please submit this information to us within 4 business days. We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by Microsoft on 6/6/2013 at 6:52 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.
Posted by Microsoft on 6/24/2013 at 4:35 PM
#pragma warning(push)
#pragma warning(disable: 6101)
#include <atlcoll.h>
#pragma warning(pop)
File Name Submitted By Submitted On File Size  
MFCCRBMapLookupWarning.rar (restricted) 6/10/2013 -