問題タブ [klocwork]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
131 参照

c - accept() から返されたソケットを破棄する正しい方法は何ですか?

から返されたソケットを破棄する正しい方法は何accept()ですか?

コードに対して Klocwork を実行すると、使用されているにもかかわらずリソース リークが発生しますclosesocket()。これは偽陽性である可能性が高いですか、それとも返されたソケットを処分するためのより良い/正しい方法はありますか?

MSDN ドキュメントaccept()に例がありますが、クリーンアップは含まれていません。

0 投票する
1 に答える
266 参照

c++ - Klocwork 9 vs Klocwork 12

For the same code base, when executing klocwork, for two different versions of KW, we are getting difference in results.

For e.g. for a particular file, KW 9 is throwing the following error :

#6325: Infinite loop "file Path" Code: INFINITE_LOOP.LOCAL | Severity: Error (2) | State: Existing | Status: Analyze | Taxonomy: C and C++ | Owner: unowned

However, for KW 12, there is no such error.

Both the KW are on different machines so I suspect this may be due difference in configuration, but the configuration file "problems_default.pconf.xml" is same in both the cases.

Can someone help ?

0 投票する
2 に答える
764 参照

jenkins - sonarqube で klocwork の結果を公開する方法

Jenkins を使用した CI プロセスとして、C++ 用の Klocwork と Java 用の SonarQube および C# プロジェクトの両方を実行しています。SonarQube ダッシュボードの方がはるかに優れているため、Klocwork の結果を SonarQube で公開したいと考えています。ある種の Jenkins プラグインを使用することは可能ですか? 他のオプションはありますか?