CWE一覧に戻る
CWE-1235

パフォーマンス・クリティカルなオペレーションにおけるオートボックスとアンボックスの誤った使用

Incorrect Use of Autoboxing and Unboxing for Performance Critical Operations
脆弱性 作成中
JA

このコードではボックス化されたプリミティブを使用しているため、パフォーマンスが重要な操作に非効率が生じる可能性がある。

EN

The code uses boxed primitives, which may introduce inefficiencies into performance-critical operations.

Scope: Availability / Impact: DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Resource Consumption (Other); Reduce Performance
Use of boxed primitives should be limited to certain situations such as when calling methods with typed parameters. They should not be used for scientific computing or other performance critical operations. They are only suited to support "impedance mismatch" between reference types and primitives. Examine the use of boxed primitives prior to use. Use SparseArrays or ArrayMap instead of HashMap to avoid performance overhead.
MITRE公式ページ — CWE-1235