Back to the previous page
Test Case ID | ![]() |
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 takes a buffer as input and copies it into another buffer. It then converts the new buffer to uppercase and prints it out. If the provided input is larger than the buffer it is being copied into, then this will result in a buffer overwrite due to access with an incorrect length. This is due to using the input length in the strncpy call used to copy the buffer. Metadata - Base program: Gimp - Source Taint: SHARED_MEMORY - Data Type: SIMPLE - Data Flow: BUFFER_ADDRESS_ARRAY_INDEX - Control Flow: INFINITE_LOOP |
File(s) |
|
Flaw |
There are no comments
Have any comments on this test case? Please,
.
- tile-manager.c
- service_mon.sh
- shm_setup.c
- runFifos.py
- C-C805B-GIMP-06-ST04-DT02-DF16-CF03-01.xml
- C-C805B-GIMP-06-ST04-DT02-DF16-CF03-01.yaml
File Contains:
CWE-805: Buffer Access with Incorrect Length Value on line(s): 750, 751, 752, 753, 754, 755, 756, 757
CWE-805: Buffer Access with Incorrect Length Value on line(s): 750, 751, 752, 753, 754, 755, 756, 757