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 |
暗号化されたキーが引き渡される関数に、ハードコードされた値が渡されています。
| クラス名 | Hardcoded Crypto Key | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 日本語クラス名 | ハードコードされた暗号キー | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| クラス分類 | セキュリティ (security) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ニーモニック | HARDCODED.KEY | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| カテゴリー |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 対応言語 | C および C++ で利用可能です。 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 有効/無効設定 | このワーニングクラスのチェックはデフォルトで有効になっています。チェックを無効にするにはプロジェクト設定ファイル
(configuration file)に以下の WARNING_FILTER ルールを追加してください。
WARNING_FILTER += discard class="Hardcoded Crypto Key" |
#include <crypt.h>
void hardcoded_key(const char *p, const char *q){
crypt("password", q); /* 'Hardcoded Crypto Key' warning issued here
* ('Use of crypt' warning also issued)
*/
crypt(p, q); /* ok: not hardcoded */
/* ('Use of crypt' warning issued here) */
}
このクラスは一般テンプレート設定ファイル(general template configuration file)の HARDCODED_ARGS_* ルールにて定義され、暗号化されたキーと引数とする多くの関数をサポートしています。
このクラスは一般テンプレート設定ファイルで HARDCODED_ARGS_* ルールセットによって実装されています。
設定ファイルの以下のパラメータがこのワーニングクラスのチェックに影響します。
To report problems with this documentation, please visit https://support.codesecure.com/.