JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.
If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.
If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.
| CodeSonar® 9.2p0 | CONFIDENTIAL | CodeSecure Inc |
A number of BADFUNC warning classes have been implemented specifically to support the Build Security In (BSI) rule set.
Some of these classes warn about functions that should not be used at all, but many of them warn about function uses so that programmers can verify that certain precautions have been taken before the function executes. Each warning class page describes the appropriate resolution for warnings of that class.
To enable checks for these classes, apply the bsi preset to the CodeSonar build/analysis.
The BSI-specific BADFUNC classes are listed in the following table, along with their corresponding BSI rules. The Build Security In website is no longer available, so we are not able to provide links to individual rules.
You can enable all BSI checks, or individual classes.
To enable the full set of BSI checks, apply the bsi configuration preset to the CodeSonar build/analysis.
| Command Line |
Specify -preset bsi as part of your
build/analysis command. For example:
codesonar analyze MyProj -preset bsi localhost:7340 make
|
|---|---|
| Define as a default preset | Copy bsi.conf from $CSONAR/codesonar/presets/ to $CSONAR/codesonar/default_presets/. OR Use the CodeSonar Configuration Tool Modify Analysis Settings option. |
| Windows Build Wizard | Select bsi from the Preset list on screen 2. |
| Eclipse Plug-In | Select bsi from the Presets list in the Properties dialog. |
| Visual Studio Plug-In | Select bsi from the Presets list in the Project Properties dialog. |
To enable an individual BSI-specific class, use a WARNING_FILTER allow rule in the general template configuration file or a general project configuration file (depending on whether you want to enable the classes for all projects or a single project). For example:
WARNING_FILTER += allow class="Use of syslog"
To report problems with this documentation, please visit https://support.codesecure.com/.