SAMATE Logo NIST Logo The SAMATE Project Department of Homeland Security
Downloads:  Download this Test Case #153767

Back to the previous page... Back to the previous page

Test Case IDCandidate153767
Bad / Good / MixedBadBad test case
AuthorIARPA STONESOUP Test and Evaluation team
Associations
Test suite: 102  
Application: 5  
Added byCharles Oliveira
LanguageC
Type of test caseSource Code
Input string
Expected Output
Instructions
See src/INSTALL file for instructions on how to install.
Submission date2015-10-06
DescriptionThis test case implements an incorrect size check when reading from a buffer that can cause a buffer under read. The buffer is declared as a character buffer of size 64 on the heap. 64 bytes of input are copied into the buffer but the test case incorrectly uses the original size of the input string to read the buffer to the output stream in reverse order leading to a buffer under read.
Metadata
- Base program: PostgreSQL
- Source Taint: SOCKET
- Data Type: STRUCT
- Data Flow: ADDRESS_AS_NONLINEAR_EXPRESSION
- Control Flow: POINTER_TO_FUNCTION
File(s)
Flaw

There are no comments
Have any comments on this test case? Please, .

File Contains:
CWE-127: Buffer Under-read on line(s): 5000, 5001, 5002