BoundsChecker ignoring error suppression items

0 Likes

Problem:

I suppress a BoundsChecker error by selecting "Suppress this error only when it occurs in this function". When I run BoundsChecker again, the error is still reported.

Resolution:

This is a known problem with BoundsChecker. An error suppression item set with "Suppress this error only when it occurs in this function" for an error in an overloaded function is ignored.

The work around is as follows:

Use a text editor on the <Program>.sup file to change the function name in the suppression item to be the function's mangled name.

For example, for suppressing an error in CWnd::GetDlgItem - first find the mangled name, from generating a map file when building the application, then search through it, until the entry is found - ?GetDlgItem@CWnd@@QBEPAV1@H@Z

Change the line in <Program>.sup from:

ignore failure USER32.DLL:GetDlgItem in function MFC42D.DLL:"CWnd::GetDlgItem"

to:

ignore failure USER32.DLL:GetDlgItem in function MFC42D.DLL:"?GetDlgItem@CWnd@@QBEPAV1@H@Z"
Old KB# 10983
Comment List
Anonymous
Related Discussions
Recommended