このページは前リリースの情報です。該当の英語のページはこのリリースで削除されています。
CWE-658 または 659 と Polyspace 検証結果のマッピング
R2023aCWE-658:C で作成されたソフトウェアの脆弱性
CWE™-658 は、C プログラムで検出された CWE ID のサブセットで、すべての言語に共通するものではありません。CWE-658 を参照してください。
次の表は、Polyspace® Bug Finder™ で対処するこのサブセットの CWE ID (version 4.9) と、それに対応する欠陥チェッカーを示しています。
| CWE ID | CWE ID の説明 | Polyspace Bug Finder 欠陥チェッカー |
|---|---|---|
| 119 | Improper restriction of operations within the bounds of a memory buffer | |
| 120 | Buffer copy without checking size of input ('Classic buffer overflow') | |
| 121 | Stack-based buffer overflow | |
| 122 | Heap-based buffer overflow | |
| 124 | Buffer underwrite ('Buffer underflow') | |
| 125 | Out-of-bounds read | |
| 126 | Buffer over-read | |
| 127 | Buffer under-read | |
| 128 | Wrap-around error | |
| 129 | Improper validation of array index | |
| 130 | Improper handling of length parameter inconsistency | |
| 131 | Incorrect calculation of buffer size | |
| 134 | Uncontrolled format string | |
| 135 | Incorrect Calculation of Multi-Byte String Length | |
| 170 | Improper null termination | |
| 188 | Reliance on data/memory layout | |
| 191 | Integer underflow (Wrap or wraparound) | |
| 192 | Integer coercion error | |
| 194 | Unexpected sign extension | |
| 195 | Signed to unsigned conversion error | |
| 196 | Unsigned to signed conversion error | |
| 197 | Numeric truncation error | |
| 242 | Use of inherently dangerous function | |
| 243 | Creation of chroot jail without changing working directory | |
| 244 | Improper clearing of heap memory before release | |
| 362 | Concurrent execution using shared resource with improper synchronization ('Race Condition') | |
| 364 | Signal handler race condition | |
| 366 | Race condition within a thread | |
| 375 | Returning a mutable object to an untrusted caller | |
| 401 | Improper release of memory before removing last reference | |
| 415 | Double free | |
| 416 | Use after free | |
| 457 | Use of uninitialized variable | |
| 466 | Return of pointer value outside of expected range | |
| 467 | Use of sizeof() on a pointer type | |
| 468 | ポインターのスケーリングが無効です | |
| 469 | Use of pointer subtraction to determine size | |
| 474 | Use of function with inconsistent implementations | |
| 476 | NULL pointer dereference | |
| 478 | Missing default case in switch statement | |
| 479 | Signal handler use of a non-reentrant function | |
| 480 | Use of incorrect operator | |
| 481 | Assigning instead of comparing | |
| 482 | Comparing instead of assigning | |
| 483 | Incorrect block delimitation | |
| 484 | Omitted break statement in switch | |
| 558 | Use of getlogin() in multithreaded application | |
| 560 | Use of umask() with chmod-style argument | |
| 562 | Return of stack variable address | |
| 587 | Assignment of a fixed address to a pointer | |
| 676 | Use of potentially dangerous function | |
| 685 | Function call with incorrect number of arguments | |
| 690 | Unchecked return value to null pointer dereference | |
| 704 | Incorrect type conversion or cast | |
| 762 | Mismatched memory management routines | |
| 783 | Operator precedence logic error | |
| 785 | Use of path manipulation function without maximum-sized buffer | |
| 787 | Out-of-bounds write | |
| 789 | Uncontrolled memory allocation | |
| 805 | Buffer access with incorrect length value | |
| 843 | Access of resource using incompatible type ('Type confusion') | |
| 910 | Use of expired file descriptor |
CWE-659:C++ で作成されたソフトウェアの脆弱性
CWE-659 は、C++ プログラムで検出された CWE ID のサブセットで、すべての言語に共通するものではありません。CWE-659 を参照してください。
次の表は、Polyspace Bug Finder で対処するこのサブセットの CWE ID (version 4.9) と、それに対応する欠陥チェッカーを示しています。
| CWE ID | CWE ID の説明 | Polyspace Bug Finder 欠陥チェッカー |
|---|---|---|
| 119 | Improper restriction of operations within the bounds of a memory buffer | |
| 120 | Buffer copy without checking size of input ('Classic buffer overflow') | |
| 121 | Stack-based buffer overflow | |
| 122 | Heap-based buffer overflow | |
| 124 | Buffer underwrite ('Buffer underflow') | |
| 125 | Out-of-bounds read | |
| 126 | Buffer over-read | |
| 127 | Buffer under-read | |
| 128 | Wrap-around error | |
| 129 | Improper validation of array index | |
| 130 | Improper handling of length parameter inconsistency | |
| 131 | Incorrect calculation of buffer size | |
| 134 | Uncontrolled format string | |
| 135 | Incorrect Calculation of Multi-Byte String Length | |
| 170 | Improper null termination | |
| 188 | Reliance on data/memory layout | |
| 191 | Integer underflow (Wrap or wraparound) | |
| 192 | Integer coercion error | |
| 194 | Unexpected sign extension | |
| 195 | Signed to unsigned conversion error | |
| 196 | Unsigned to signed conversion error | |
| 197 | Numeric truncation error | |
| 242 | Use of inherently dangerous function | |
| 243 | Creation of chroot jail without changing working directory | |
| 244 | Improper clearing of heap memory before release | |
| 362 | Concurrent execution using shared resource with improper synchronization ('Race Condition') | |
| 364 | Signal handler race condition | |
| 366 | Race condition within a thread | |
| 375 | Returning a mutable object to an untrusted caller | |
| 401 | Improper release of memory before removing last reference | |
| 415 | Double free | |
| 416 | Use after free | |
| 457 | Use of uninitialized variable | |
| 466 | Return of pointer value outside of expected range | |
| 467 | Use of sizeof() on a pointer type | |
| 468 | ポインターのスケーリングが無効です | |
| 469 | Use of pointer subtraction to determine size | |
| 476 | NULL pointer dereference | |
| 478 | Missing default case in switch statement | |
| 479 | Signal handler use of a non-reentrant function | |
| 480 | Use of incorrect operator | |
| 481 | Assigning instead of comparing | |
| 482 | Comparing instead of assigning | |
| 483 | Incorrect block delimitation | |
| 484 | Omitted break statement in switch | |
| 558 | Use of getlogin() in multithreaded application | |
| 562 | Return of stack variable address | |
| 587 | Assignment of a fixed address to a pointer | |
| 676 | Use of potentially dangerous function | |
| 690 | Unchecked return value to null pointer dereference | |
| 704 | Incorrect type conversion or cast | |
| 762 | Mismatched memory management routines | |
| 767 | Access to critical private variable via public method | |
| 783 | Operator precedence logic error | |
| 785 | Use of path manipulation function without maximum-sized buffer | |
| 787 | Out-of-bounds write | |
| 789 | Uncontrolled memory allocation | |
| 805 | Buffer access with incorrect length value | |
| 843 | Access of resource using incompatible type ('Type confusion') | |
| 910 | Use of expired file descriptor |