Back to the previous page
| Test Case ID | 153792 |
| Bad / Good / Mixed | Bad |
| Author | IARPA STONESOUP Test and Evaluation team |
| Associations | Test suite: 102 Application: 18 |
| Added by | Charles Oliveira |
| Language | C |
| Type of test case | Source Code |
| Input string | |
| Expected Output | |
| Instructions | See src/INSTALL file for instructions on how to install. |
| Submission date | 2015-10-06 |
| Description | This test case implements an incorrectly checked write into a buffer that is contained within a heap allocated struct. The buffer is declared as a struct member with a fixed size. Untrusted input is not properly sanitized or restricted before being copied into the buffer, from the last character to the first. This allows input greater than 63 characters in length to underflow the buffer, overwriting the function pointer declared before the buffer in the struct. Metadata - Base program: Gimp - Source Taint: SHARED_MEMORY - Data Type: TYPEDEF - Data Flow: ADDRESS_AS_LINEAR_EXPRESSION - Control Flow: SET_JUMP_LONG_JUMP |
| File(s) |
|
| Flaw |
There are no comments
Have any comments on this test case? Please,
.
- gimpdisplay.c
- runFifos.py
- service_mon.sh
- shm_setup.c
- C-C124C-GIMP-02-ST04-DT06-DF13-CF23-01.yaml
- C-C124C-GIMP-02-ST04-DT06-DF13-CF23-01.xml
File Contains:
CWE-124: Buffer Underwrite ('Buffer Underflow') on line(s): 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849
CWE-124: Buffer Underwrite ('Buffer Underflow') on line(s): 839, 840, 841, 842, 843, 844, 845, 846, 847, 848, 849

