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

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

Test Case IDCandidate155404
Bad / Good / MixedBadBad test case
AuthorIARPA STONESOUP Test and Evaluation team
Test suite: 102  
Application: 11  
Added byCharles Oliveira
Type of test caseSource Code
Input string
Expected Output
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.

- Base program: Apache Jena
- Source Taint: FILE_CONTENTS
- Data Type: SIMPLE
- Data Flow: VAR_ARG_LIST
- Control Flow: RECURSIVE

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

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






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