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

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

Test Case IDCandidate155176
Bad / Good / MixedBadBad test case
AuthorIARPA STONESOUP Test and Evaluation team
Associations
Test suite: 102  
Application: 11  
Added byCharles Oliveira
LanguageJava
Type of test caseSource Code
Input string
Expected Output
Instructions
See src/build.xml and src/maven-build.xml.
Submission date2015-10-06
DescriptionThis test takes in a char value from a taint source. The value is cast to a byte causing an unsigned to signed conversion. This value is then used to allocate an array. If the original char is >127 this will lead to a negative index for the array causing a NegativeArraySizeException.

Metadata
- Base program: Apache Jena
- Source Taint: ENVIRONMENT_VARIABLE
- Data Type: SIMPLE
- Data Flow: ADDRESS_AS_FUNCTION_RETURN_VALUE
- Control Flow: INTERRUPT
File(s)
Flaw

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

File Contains:
CWE-196: Unsigned to Signed Conversion Error on line(s): 246

					
				

					
				

					
				

					
				

					
				

Contact: :: Created: Jan. 2006 :: Updated: Nov. 2017 :: Version: 4.9